landscape: register serviceworker at root
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', () => {
- navigator.serviceWorker.register('/serviceworker.js');
+ navigator.serviceWorker.register(
+ '/~landscape/js/bundle/serviceworker.js',
+ { scope: '/' }
+ );
});
}
</script>
