zoneminder/web/js/Server.js

13 lines
282 B
JavaScript
Raw Normal View History

2018-07-10 02:10:06 +08:00
class Server {
constructor(json) {
for( var k in json ) {
this[k] = json[k];
}
}
url(port=0){
return location.protocol+'//'+this.Hostname+
(port ? ':'+port : '') +
( ( this.PathPrefix && this.PathPrefix != 'null') ? this.PathPrefix : '');
}
};