mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-03-12 08:55:14 +00:00
Update chrome.js
This commit is contained in:
parent
6b7a900d7b
commit
2511a2ac5b
|
@ -66,7 +66,7 @@ var ChromeObject = function() {
|
|||
};
|
||||
|
||||
this.setDebuggingPort = function(n) {
|
||||
this.debuggingPort = n;
|
||||
this.debuggingPort = (typeof(n) !== "number" ? this.debuggingPort : n);
|
||||
}
|
||||
|
||||
this.createShoutcut = function(url) {
|
||||
|
@ -161,7 +161,7 @@ var ChromeObject = function() {
|
|||
if (this.inPrivate) {
|
||||
cmd.push("--incognito");
|
||||
}
|
||||
|
||||
|
||||
if (this.debuggingPort > 0) {
|
||||
cmd.push("--remote-debugging-port=" + this.debuggingPort);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user