Skip to content

Commit

Permalink
fix: item is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
yiyungent committed Apr 2, 2022
1 parent 4e57b44 commit 9f4e086
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ hexo.extend.injector.register(
for (const key in config.extensions) {
if (Object.hasOwnProperty.call(config.extensions, key)) {
const itemConfig = config.extensions[key];
let itemConfigJsonStr = JSON.stringify(item);
let itemConfigJsonStr = JSON.stringify(itemConfig);
extensionsAddCookie = extensionsAddCookie + `hexoCloudAddCookie("hexo_cloud.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.1",
"version": "0.2.2",
"description": "Hexo 云插件 | 云服务",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 9f4e086

Please sign in to comment.