mirror of
https://github.com/casjaysdevdocker/squidguard
synced 2025-01-19 00:34:26 -05:00
c7f2f24c0e
data/htdocs/www/js/errorpages/loaddomain.js
8 lines
258 B
JavaScript
8 lines
258 B
JavaScript
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}`;
|
|
}
|