mirror of
https://github.com/casjaysdevdocker/bind
synced 2024-11-22 11:23:09 -05:00
🗃️ Committing everything that changed 🗃️
All checks were successful
release-tag / release-image (push) Successful in 3m18s
All checks were successful
release-tag / release-image (push) Successful in 3m18s
rootfs/usr/share/httpd/default/js/errorpages/homepage.js
This commit is contained in:
parent
788edf16f0
commit
ddfe8bf8a7
@ -1,6 +1,16 @@
|
|||||||
function homepage() {
|
function homepage(getURI) {
|
||||||
let proto = location.protocol;
|
let baseURI = getURI;
|
||||||
let port = location.port;
|
let port = location.port;
|
||||||
let currentSite = window.location.hostname;
|
let url = location.hostname;
|
||||||
window.location = proto + '//' + currentSite + ':' + port;
|
let proto = location.protocol;
|
||||||
|
let baseURL = baseURI || location.pathname;
|
||||||
|
let base = baseURL.slice(0, baseURL.lastIndexOf('/'));
|
||||||
|
if (!base) base = '/';
|
||||||
|
if (!port)
|
||||||
|
if (proto == 'https:') {
|
||||||
|
port = 443;
|
||||||
|
} else {
|
||||||
|
port = 80;
|
||||||
|
}
|
||||||
|
window.location = proto + '//' + url + ':' + port + base;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user