summaryrefslogtreecommitdiff
path: root/addons/website/data/website_data.xml
diff options
context:
space:
mode:
authorPierre Paridans <app@odoo.com>2020-09-24 12:47:09 +0000
committerPierre Paridans <app@odoo.com>2020-10-02 12:21:07 +0000
commita014a6c9e3baced22b158d6d8b4199bdae7562b9 (patch)
treea071d4055f23205f819ea7b6a8b5c8b9d5104ac6 /addons/website/data/website_data.xml
parentc181022c02f353451efb322dfe60e8bbd2ea2b4d (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 'addons/website/data/website_data.xml')
0 files changed, 0 insertions, 0 deletions