mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-14 05:31:03 +00:00
Update adb.js
This commit is contained in:
parent
b7b69076c7
commit
0965c5930b
|
@ -32,7 +32,12 @@ function ADBObject() {
|
||||||
};
|
};
|
||||||
|
|
||||||
this.getHostname = function(id) {
|
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) {
|
this.getProperty = function(id, name) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user