mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-11 20:21:03 +00:00
Update chrome.js
This commit is contained in:
parent
e38c2128a4
commit
09aa593c53
|
@ -496,11 +496,15 @@ var ChromeObject = function() {
|
|||
this.checkDebuggingPort = function() {
|
||||
var isChecked = false;
|
||||
|
||||
if (this.debuggingPort > 0) {
|
||||
var result = SHELL.exec("netstat -ano | findstr :" + this.debuggingPort);
|
||||
if (result.indexOf(":" + this.debuggingPort) > -1) {
|
||||
isChecked = true;
|
||||
try {
|
||||
if (this.debuggingPort > 0) {
|
||||
var result = SHELL.exec("netstat -ano | findstr :" + this.debuggingPort);
|
||||
if (result.indexOf(":" + this.debuggingPort) > -1) {
|
||||
isChecked = true;
|
||||
}
|
||||
}
|
||||
} catch(e) {
|
||||
console.error("ChromeObject.checkDebuggingPort() -> " + e.message);
|
||||
}
|
||||
|
||||
return isChecked;
|
||||
|
|
Loading…
Reference in New Issue
Block a user