Skip to content
Snippets Groups Projects
Commit 6a256a2a authored by Kayz's avatar Kayz
Browse files

Update doorscan.js - another fix for witnik. Fix arg handling. Allow scan from command line/jsexec

parent 0ff5007f
No related branches found
No related tags found
2 merge requests!463MRC mods by Codefenix (2024-10-20),!89Update doorscan.js - another fix for witnik. Fix arg handling. Allow scan from command line/jsexec
Pipeline #1223 passed
......@@ -1090,10 +1090,14 @@ function doScan()
}
}
if(tmp==false) {
/* No ad... just display a message... */
console.attributes=YELLOW;
console.writeln("New external: "+xtrn_area.prog[door].name+" in the "+xtrn_area.sec[xtrn_area.prog[door].sec_code].name+" section.");
console.crlf();
if (typeof console !== "undefined") {
/* No ad... just display a message... */
console.attributes = YELLOW;
console.writeln("New external: " + xtrn_area.prog[door].name + " in the " + xtrn_area.sec[xtrn_area.prog[door].sec_code].name + " section.");
console.crlf();
} else {
writeln("New external: " + xtrn_area.prog[door].name + " in the " + xtrn_area.sec[xtrn_area.prog[door].sec_code].name + " section.");
}
}
if(ucfg.door[door]==undefined && ucfg.global.addNew) {
ucfg=new UserConfig(user.number, true);
......@@ -1204,7 +1208,7 @@ function doScan()
}
for(i in argv) {
if (typeof argv[i] == "String") {
if (typeof argv[i] == "string") {
switch(argv[i].toLowerCase()) {
case 'scan':
doScan();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment