diff options
Diffstat (limited to 'web/static/dartboat.js')
-rw-r--r-- | web/static/dartboat.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/web/static/dartboat.js b/web/static/dartboat.js index f2593f7..39e0371 100644 --- a/web/static/dartboat.js +++ b/web/static/dartboat.js @@ -194,3 +194,6 @@ document.addEventListener('keydown', e => { else if (e.key == 'u') promptHandle('undo'); }); + +if ('serviceWorker' in navigator) + navigator.serviceWorker.register('sw.js'); |