mirror of
https://github.com/casjaysdevdocker/gohttpserver
synced 2025-01-18 00:34:22 -05:00
🗃️ Committing everything that changed 🗃️
data/htdocs/www/js/errorpages/loaddomain.js
This commit is contained in:
parent
7a986369ca
commit
1b0bc6e90b
@ -3,5 +3,5 @@ function loadDomain() {
|
||||
let port = location.port;
|
||||
let url = location.hostname;
|
||||
var display = document.getElementById('display-domain');
|
||||
display.innerHTML = proto + '//' + url + ':' + port;
|
||||
display.innerHTML = `${req.protocol}://${req.get('host')}/${req.originalUrl}`;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user