mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 23:32:38 +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()
|
require('offline-plugin/runtime').install()
|
||||||
window.onNuxtReady((app) => {
|
window.onNuxtReady((app) => {
|
||||||
if ('serviceWorker' in navigator) {
|
if ('serviceWorker' in navigator) {
|
||||||
|
Loading…
Reference in New Issue
Block a user