diff options
Diffstat (limited to 'src/index.js')
| -rw-r--r-- | src/index.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/index.js b/src/index.js index 1c498bb..21e04c3 100644 --- a/src/index.js +++ b/src/index.js @@ -24,4 +24,9 @@ new Vue({ router, el: '#app', render: h => h(App), + mounted: function() { + if ('serviceWorker' in navigator) { + navigator.serviceWorker.register('/service-worker.js'); + } + }, }); |
