mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-02-11 09:24:58 +00:00
Update adb.js
This commit is contained in:
parent
b7b69076c7
commit
0965c5930b
|
@ -32,7 +32,12 @@ function ADBObject() {
|
|||
};
|
||||
|
||||
this.getHostname = function(id) {
|
||||
return this.getProperty(id, "net.hostname").trim();
|
||||
var result = this.getProperty(id, "net.hostname");
|
||||
if (typeof result === "string") {
|
||||
return result.trim();
|
||||
} else {
|
||||
return "";
|
||||
}
|
||||
};
|
||||
|
||||
this.getProperty = function(id, name) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user