scrat-swig
Advanced tools
Comparing version 1.1.0-pwa2 to 1.1.0-pwa3
1.1.0-pwa1 / 2017-12-26 | ||
1.1.0-pwa3 / 2018-01-02 | ||
================== | ||
* feat: 修改自动插入sw脚本逻辑 (#17) | ||
1.1.0-pwa2 / 2017-12-26 | ||
================== | ||
* feat: support PWA (#16) | ||
@@ -6,0 +11,0 @@ |
@@ -363,5 +363,4 @@ 'use strict'; | ||
} | ||
if (serviceWorkerRegistrationJS && options.usePWA) { | ||
// if(serviceWorkerRegistrationJS && !useCombo) { | ||
html += `<script>${serviceWorkerRegistrationJS}</script>`; | ||
if (serviceWorkerRegistrationJS/* && options.usePWA*/) { | ||
html += `<script id="sw-reg">${serviceWorkerRegistrationJS}</script>`; | ||
} | ||
@@ -368,0 +367,0 @@ |
{ | ||
"name": "scrat-swig", | ||
"version": "1.1.0-pwa2", | ||
"version": "1.1.0-pwa3", | ||
"description": "Extensions of swig for scrat", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
46016
1114