We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 611237c commit 1ecb23dCopy full SHA for 1ecb23d
lib/app/clientEntry.js
@@ -34,7 +34,9 @@ router.onReady(() => {
34
app.$mount('#app')
35
36
// Register service worker
37
- if (process.env.NODE_ENV === 'production' && SW_ENABLED) {
+ if (process.env.NODE_ENV === 'production' &&
38
+ SW_ENABLED &&
39
+ window.location.protocol === 'https:') {
40
register(`${BASE_URL}service-worker.js`, {
41
ready () {
42
console.log('[vuepress:sw] Service worker is active.')
0 commit comments