mirror of
https://github.com/dockersrc/scripts
synced 2024-11-22 17:23:08 -05:00
8 lines
232 B
JavaScript
8 lines
232 B
JavaScript
|
function loadDomain() {
|
||
|
let proto = location.protocol;
|
||
|
let port = location.port;
|
||
|
let url = location.hostname;
|
||
|
var display = document.getElementById('display-domain');
|
||
|
display.innerHTML = proto + '//' + url + ':' + port;
|
||
|
}
|