Skip to content

Commit

Permalink
fix: hexoCloudAddCookie: cookie key 错误
Browse files Browse the repository at this point in the history
  • Loading branch information
yiyungent committed Apr 2, 2022
1 parent 9f4e086 commit 527f8d0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file modified README.md
Binary file not shown.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ hexo.extend.injector.register(
if (Object.hasOwnProperty.call(config.extensions, key)) {
const itemConfig = config.extensions[key];
let itemConfigJsonStr = JSON.stringify(itemConfig);
extensionsAddCookie = extensionsAddCookie + `hexoCloudAddCookie("hexo_cloud.extensions.${key}", '${itemConfigJsonStr}', 24);`;
extensionsAddCookie = extensionsAddCookie + `hexoCloudAddCookie("extensions.${key}", '${itemConfigJsonStr}', 24);`;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hexo-cloud",
"version": "0.2.2",
"version": "0.2.3",
"description": "Hexo 云插件 | 云服务",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 527f8d0

Please sign in to comment.