Update chrome.js

This commit is contained in:
Namhyeon Go 2021-06-20 06:11:44 +09:00 committed by GitHub
parent 6b7a900d7b
commit 2511a2ac5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,7 +66,7 @@ var ChromeObject = function() {
}; };
this.setDebuggingPort = function(n) { this.setDebuggingPort = function(n) {
this.debuggingPort = n; this.debuggingPort = (typeof(n) !== "number" ? this.debuggingPort : n);
} }
this.createShoutcut = function(url) { this.createShoutcut = function(url) {
@ -161,7 +161,7 @@ var ChromeObject = function() {
if (this.inPrivate) { if (this.inPrivate) {
cmd.push("--incognito"); cmd.push("--incognito");
} }
if (this.debuggingPort > 0) { if (this.debuggingPort > 0) {
cmd.push("--remote-debugging-port=" + this.debuggingPort); cmd.push("--remote-debugging-port=" + this.debuggingPort);
} }