hexo-swpp 2.3.2 → 2.3.3

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.
@@ -69,7 +69,7 @@
69
69
 
70
70
  /** 判断指定url击中了哪一种缓存,都没有击中则返回null */
71
71
  function findCache(url) {
72
- if (url.host === 'localhost') return
72
+ if (url.hostname === 'localhost') return
73
73
  for (let key in cacheList) {
74
74
  const value = cacheList[key]
75
75
  if (value.match(url)) return value
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-swpp",
3
- "version": "2.3.2",
3
+ "version": "2.3.3",
4
4
  "main": "index.js",
5
5
  "dependencies": {
6
6
  "hexo-log": "^3.0.0",