hexo-swpp 1.4.6 → 1.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +4 -1
- package/package.json +1 -1
- package/sw-dom.js +1 -1
package/index.js
CHANGED
|
@@ -369,7 +369,10 @@ const buildUpdateJson = (name, dif, oldUpdate) => {
|
|
|
369
369
|
!(tidied.archives || tidied.categories || tidied.tags || tidied.index)
|
|
370
370
|
) return writeJson(oldUpdate ?? {
|
|
371
371
|
global: 0,
|
|
372
|
-
info: [{
|
|
372
|
+
info: [{
|
|
373
|
+
version: 0,
|
|
374
|
+
change: {}
|
|
375
|
+
}]
|
|
373
376
|
})
|
|
374
377
|
pushUpdateToInfo(newInfo, tidied)
|
|
375
378
|
const result = mergeUpdateWithOld(newInfo, oldUpdate, tidied)
|
package/package.json
CHANGED
package/sw-dom.js
CHANGED
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
if (!list) break
|
|
45
45
|
sessionStorage.setItem('updated', '1')
|
|
46
46
|
// noinspection JSUnresolvedVariable,JSUnresolvedFunction
|
|
47
|
-
if (Pjax
|
|
47
|
+
if (window.Pjax.isSupported()) {
|
|
48
48
|
Promise.all(list.map(url => {
|
|
49
49
|
if (url.endsWith('.js'))
|
|
50
50
|
return pjaxUpdate(url)
|