Compare commits

...

2 Commits

Author SHA1 Message Date
0a31d9d22e Merge branch 'master' into iron-patch-1 2023-07-28 18:28:25 +00:00
James Shiffer
7f6f08203f Fixed logic errors 2023-07-27 22:19:12 -07:00

View File

@ -5,9 +5,9 @@ function ask() {
if (e.message === 'Permission denied') { if (e.message === 'Permission denied') {
if (!askedOnce) if (!askedOnce)
return; return;
if (location.host.indexOf("www") !== 0) if (location.host.indexOf("www.") === 0)
location.host = "www2." + location.host; location.host = "www2." + location.host.slice(4);
else if (location.host.indexOf("www.") !== 0) else if (location.host.indexOf("www") === 0)
location.host = "www" + (Number(location.host[3]) + 1) + "." + location.host.slice(5); location.host = "www" + (Number(location.host[3]) + 1) + "." + location.host.slice(5);
else else
location.host = "www." + location.host; location.host = "www." + location.host;