修复 auto.setMode()报错的问题
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user