We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2252b4b commit 75e416fCopy full SHA for 75e416f
index.html
@@ -7,7 +7,7 @@
7
8
const targetOrigin = location.origin === 'https://gist.host' ? 'https://gist.run' : 'http://localhost:9000';
9
10
- navigator.serviceWorker.register(`worker.js`, { scope: './' });
+ navigator.serviceWorker.register(`${location.origin}/worker.js`, { scope: './' });
11
12
addEventListener('message', event => {
13
if (event.origin !== targetOrigin) {
0 commit comments