mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-03 04:27:37 +03:00
* Use local copy of workbox service worker scripts * Refactor workbox integration: - Only add prod js, without maps. Reduces the size from 170k to 24k - Removed it from build. As it is small now, we can add it to source, and have a script to just update it whenever it is required - Fixed relative paths in navidrome-service-worker.js, should now work with BaseUrl != '' Co-authored-by: Deluan <deluan@navidrome.org>
2 lines
660 B
JavaScript
2 lines
660 B
JavaScript
this.workbox=this.workbox||{},this.workbox.navigationPreload=function(t){"use strict";try{self["workbox:navigation-preload:6.2.4"]&&_()}catch(t){}function e(){return Boolean(self.registration&&self.registration.navigationPreload)}return t.disable=function(){e()&&self.addEventListener("activate",(t=>{t.waitUntil(self.registration.navigationPreload.disable().then((()=>{})))}))},t.enable=function(t){e()&&self.addEventListener("activate",(e=>{e.waitUntil(self.registration.navigationPreload.enable().then((()=>{t&&self.registration.navigationPreload.setHeaderValue(t)})))}))},t.isSupported=e,t}({});
|
|
//# sourceMappingURL=workbox-navigation-preload.prod.js.map
|