From ed01353245349c94fcc5a11ca67b598161e59bc6 Mon Sep 17 00:00:00 2001 From: Mike Date: Fri, 7 Feb 2020 14:07:18 +0800 Subject: [PATCH] v3.0.12 release 1. better use pathname rather than href. --- lib/blog-encrypt.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/blog-encrypt.js b/lib/blog-encrypt.js index b47c6c4..cd57143 100644 --- a/lib/blog-encrypt.js +++ b/lib/blog-encrypt.js @@ -4,7 +4,7 @@ const cryptoObj = window.crypto || window.msCrypto; const storage = window.localStorage; - const storageName = 'hexo-blog-encrypt:#' + window.location.href; + const storageName = 'hexo-blog-encrypt:#' + window.location.pathname; const keySalt = textToArray('hexo-blog-encrypt的作者们都是大帅比!'); const ivSalt = textToArray('hexo-blog-encrypt是地表最强Hexo加密插件!'); diff --git a/package.json b/package.json index ba33fc5..a92a627 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "test": "echo \"Error: no test specified\" && exit 1", "lint": "eslint --ext .js ./" }, - "version": "3.0.11", + "version": "3.0.12", "devDependencies": { "eslint": "^6.2.2" }