Skip to content

Commit

Permalink
Merge pull request #2021 from nonameShijian/PR-Branch
Browse files Browse the repository at this point in the history
修正版本号判断,修改类型文件,添加开发者模式控制调试按钮的功能
  • Loading branch information
nonameShijian authored Oct 21, 2024
2 parents cb1fcec + ac473de commit db20119
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 2 deletions.
2 changes: 1 addition & 1 deletion game/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@
"chrome",
...window.process.versions.chrome
.split(".")
.slice(3)
.slice(0, 3)
.map(item => parseInt(item)),
];
}
Expand Down
51 changes: 51 additions & 0 deletions node_modules/@types/noname-typings/windowEx.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion noname/get/compatible.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export class GetCompatible {
"chrome",
...window.process.versions.chrome
.split(".")
.slice(3)
.slice(0, 3)
.map(item => parseInt(item)),
];
}
Expand Down
2 changes: 2 additions & 0 deletions noname/library/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1111,8 +1111,10 @@ export class Library {
game.saveConfig("dev", bool);
if (_status.connectMode) return;
if (bool) {
window.noname_shijianInterfaces?.showDebugButton?.();
lib.cheat.i();
} else {
window.noname_shijianInterfaces?.hideDebugButton?.();
delete window.cheat;
delete window.game;
delete window.ui;
Expand Down

0 comments on commit db20119

Please sign in to comment.