mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-03-12 02:47:50 -04:00
13 lines
282 B
JavaScript
13 lines
282 B
JavaScript
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 : '');
|
|
}
|
|
};
|