Update init-offline.js

This commit is contained in:
Sébastien Chopin 2017-04-08 11:34:42 +02:00 committed by GitHub
parent 2560bfb512
commit 757eaf7908

View File

@ -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) {