mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 15:22:39 +00:00
Update init-offline.js
This commit is contained in:
parent
2560bfb512
commit
757eaf7908
@ -1,4 +1,4 @@
|
||||
if (process.BROWSER_BUILD && process.env.NODE_ENV === 'production') {
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
require('offline-plugin/runtime').install()
|
||||
window.onNuxtReady((app) => {
|
||||
if ('serviceWorker' in navigator) {
|
||||
|
Loading…
Reference in New Issue
Block a user