code sharer
Share colorful snippets of code that others can copy and paste.
Fake Window Buttons
if ('serviceWorker' in navigator){ navigator.serviceWorker.register('./sw-test/sw.js', {scope: './sw-test/'}) .then((reg) => { console.log('Registration succeeded. Scope is ' + reg.scope); }).catch((error) => { console.log('Registration failed with ' + error); }); }
copy embed link