scripts/htdocs/www/js/errorpages/loaddomain.js

8 lines
258 B
JavaScript
Raw Normal View History

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