mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-14 13:41:05 +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.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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user