mirror of
https://github.com/TonyJiangWJ/Auto.js.git
synced 2026-06-24 21:33:16 +08:00
修复 auto.setMode()报错的问题
This commit is contained in:
parent
a124c732b1
commit
d2e0899c8b
@ -125,7 +125,7 @@ module.exports = function(runtime, global){
|
||||
}
|
||||
|
||||
auto.setMode = function(modeStr){
|
||||
if(typeof(mode) !== "string"){
|
||||
if(typeof(modeStr) !== "string"){
|
||||
throw new TypeError("mode should be a string");
|
||||
}
|
||||
let mode = modes[modeStr];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user