bind/rootfs/usr/share/httpd/default/js/errorpages/homepage.js

7 lines
192 B
JavaScript
Raw Normal View History

function homepage() {
let proto = location.protocol;
let port = location.port;
let currentSite = window.location.hostname;
window.location = proto + '//' + currentSite + ':' + port;
}