This commit is contained in:
Liwanyi 2022-10-25 10:36:18 +08:00
parent e9b55bf694
commit 8b22f3615b
4 changed files with 14 additions and 6 deletions

View File

@ -4,6 +4,14 @@
# CHANGE # CHANGE
## 0.6.4
2022年10月25日
### 修改
- 一键存钱错误修复
## 0.6.3 ## 0.6.3
2022年10月24日 2022年10月24日

View File

@ -1,6 +1,6 @@
{ {
"name": "wuhu-torn-helper", "name": "wuhu-torn-helper",
"version": "0.6.3", "version": "0.6.4",
"description": "芜湖助手", "description": "芜湖助手",
"dependencies": {}, "dependencies": {},
"scripts": { "scripts": {

File diff suppressed because one or more lines are too long

View File

@ -48,12 +48,12 @@ export default class ZhongIcon extends WuhuBase {
* *
*/ */
private insert2Dom() { private insert2Dom() {
ZhongIcon.ZhongNode = document.querySelector('div#wh-trans-icon'); let zhongNode: MyHTMLElement = document.querySelector('div#wh-trans-icon');
let zhongNode = ZhongIcon.ZhongNode;
let settings = this.menuItemList; let settings = this.menuItemList;
let { version } = WuhuBase.glob; let { version } = WuhuBase.glob;
if ((self !== top) || !!zhongNode) return null; if ((self !== top) || !!zhongNode) return null;
zhongNode = document.createElement('div'); zhongNode = document.createElement('div');
ZhongIcon.ZhongNode = zhongNode;
zhongNode.id = 'wh-trans-icon'; zhongNode.id = 'wh-trans-icon';
zhongNode.classList.add('cont-gray'); zhongNode.classList.add('cont-gray');
zhongNode.innerHTML = ZHONG_MENU_HTML.replace('{{}}', version.slice(-1) === '$' ? 'DEV' : version); zhongNode.innerHTML = ZHONG_MENU_HTML.replace('{{}}', version.slice(-1) === '$' ? 'DEV' : version);