mirror of
https://github.com/dockersrc/scripts
synced 2024-11-22 11:23:06 -05:00
b962a4e391
configs/gitea/ htdocs/www/js/errorpages/loaddomain.js init/done/08-gitea.sh
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}`;
|
|
}
|