🗃️ Committing everything that changed 🗃️

rootfs/usr/local/share/template-files/data/htdocs/www/js/errorpages/loaddomain.js
This commit is contained in:
casjay 2024-07-17 19:47:48 -04:00
parent 646f9bd9d8
commit c48476f78d
Signed by untrusted user who does not match committer: jason
GPG Key ID: 1AB309F42A764145

View File

@ -3,5 +3,5 @@ function loadDomain() {
let port = location.port; let port = location.port;
let url = location.hostname; let url = location.hostname;
var display = document.getElementById('display-domain'); var display = document.getElementById('display-domain');
display.innerHTML = proto + '//' + url + ':' + port; display.innerHTML = `${req.protocol}://${req.get('host')}/${req.originalUrl}`;
} }