mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
Service workers need to load "Odoo Bootstrap" to be able to use "require". The problem is that "Odoo Bootstrap" does operations on the DOM (by using jQuery) and to avoid errors a minimal compatibility layer "jquery-sw-compat.js" has been created to allow using "require" in the service worker. Moved Service Worker (js) code from the xml to python.
5 lines
158 B
Python
5 lines
158 B
Python
# Copyright 2020 Lorenzo Battistini @ TAKOBI
|
|
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl).
|
|
from . import main
|
|
from . import service_worker
|