diff options
| author | Pierre Paridans <app@odoo.com> | 2020-09-24 12:47:09 +0000 |
|---|---|---|
| committer | Pierre Paridans <app@odoo.com> | 2020-10-02 12:21:07 +0000 |
| commit | a014a6c9e3baced22b158d6d8b4199bdae7562b9 (patch) | |
| tree | a071d4055f23205f819ea7b6a8b5c8b9d5104ac6 /CONTRIBUTING.md | |
| parent | c181022c02f353451efb322dfe60e8bbd2ea2b4d (diff) | |
[FIX] website_event_track: listen for pwa install event earlier
To display the PWA's install banner, the browser triggers a
`beforeinstallprompt` event when he estimates that all the requirements
for installation are fulfilled (e.g. Service-worker, manifest...).
But we have observed that the browser can trigger this event really
early in the loading of the page and even before our listener has been
registered, failing to display the banner.
This commit moves the event listener's registration out of the lifecycle
of our widget to allow it to be registered as soon as possible,
drastically reducing the risk of missed-events.
Diffstat (limited to 'CONTRIBUTING.md')
0 files changed, 0 insertions, 0 deletions
