This commit is contained in:
woohoo 2022-07-10 21:07:25 +08:00
parent ecd4e0d146
commit 597819af99
2 changed files with 11 additions and 4 deletions

View File

@ -6,6 +6,8 @@
},
"scripts": {
"release": "npm run minify && node build.js",
"minify": "uglifyjs wuhu-torn-helper.js -o release.min.user.js -m"
"minify": "uglifyjs wuhu-torn-helper.js -o release.min.user.js -m",
"serve": "",
"build": ""
}
}

View File

@ -10265,9 +10265,14 @@ z-index:100001;
});
});
};
WHNotify(await backHomeAction());
WHNotify('成功,即将刷新页面……');
setTimeout(location.reload, 3000);
let res = await backHomeAction();
WHNotify(res);
if (!res.includes('error')) {
WHNotify('成功,即将刷新');
setTimeout(() => location.reload(), 3000);
} else {
WHNotify('出错了');
}
}
$zhongNode.initTimer.innerHTML = `助手加载时间 ${Date.now() - start_timestamp}ms`;