You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This may only be for information, though a tweak or two could be made if it's considered an issue.
If a user visits https://moz-extension.kiwix.org/ independently in a browser, but never switches to Service Worker mode, then the app never caches its own code, so will not work offline. Once the user switches to SW mode, then the app will continue to work offline even if they switch back to jQuery mode.
In some senses this is academic because when we implement #196 this issue will go away. However, there is a possible interim solution which might be a way of "softly" introducing and testing #196. This would be to test whether the app is running from an https: server (or localhost) and switch to Service Worker automatically if it is.
This would be a half-way house to #196. It would not affect browser extensions (the main target), and would be a way of testing Service Worker as default. It would be pretty much a one-line PR:
if (/^https:|\/localhost[:\/]/.test(window.location.href) && navigator.serviceWorker) setContentInjectionMode('serviceworker');
The text was updated successfully, but these errors were encountered:
This may only be for information, though a tweak or two could be made if it's considered an issue.
If a user visits https://moz-extension.kiwix.org/ independently in a browser, but never switches to Service Worker mode, then the app never caches its own code, so will not work offline. Once the user switches to SW mode, then the app will continue to work offline even if they switch back to jQuery mode.
In some senses this is academic because when we implement #196 this issue will go away. However, there is a possible interim solution which might be a way of "softly" introducing and testing #196. This would be to test whether the app is running from an https: server (or localhost) and switch to Service Worker automatically if it is.
This would be a half-way house to #196. It would not affect browser extensions (the main target), and would be a way of testing Service Worker as default. It would be pretty much a one-line PR:
if (/^https:|\/localhost[:\/]/.test(window.location.href) && navigator.serviceWorker) setContentInjectionMode('serviceworker');
The text was updated successfully, but these errors were encountered: