From d2e0899c8bef8543bb437b113b0d23a4517f4924 Mon Sep 17 00:00:00 2001 From: hyb1996 <946994919@qq.com> Date: Mon, 15 Oct 2018 15:57:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20auto.setMode()=E6=8A=A5?= =?UTF-8?q?=E9=94=99=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- autojs/src/main/assets/modules/__automator__.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autojs/src/main/assets/modules/__automator__.js b/autojs/src/main/assets/modules/__automator__.js index bf4811c2..b6d45bbd 100644 --- a/autojs/src/main/assets/modules/__automator__.js +++ b/autojs/src/main/assets/modules/__automator__.js @@ -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];