From 37babea3004a15b0984ffb9a2eb3bc3e33866488 Mon Sep 17 00:00:00 2001 From: ION606 Date: Tue, 11 Oct 2022 08:43:54 -0400 Subject: [PATCH] Fixed a bug --- HTML/calEvent.html | 2 +- HTML/calendar.html | 4 ++-- HTML/dashboard.html | 4 ++-- HTML/myGuilds.html | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/HTML/calEvent.html b/HTML/calEvent.html index 26c7475..3f45b1f 100644 --- a/HTML/calEvent.html +++ b/HTML/calEvent.html @@ -255,7 +255,7 @@ async function createCalEvent(day) { // event.preventDefault(); - await new Promise((res, rej) => { res(window.open('https://www.selmerbot.com/newCalEvent.html','newCalPopWindow','loaction=no,width=400,height=350,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes')); }) + await new Promise((res, rej) => { res(window.open('https://www.selmerbot.com/newCalEvent','newCalPopWindow','loaction=no,width=400,height=350,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes')); }) .then((w) => { if (!w) { alert("Your browser has JavaScript Disabled!"); return w.close(); } diff --git a/HTML/calendar.html b/HTML/calendar.html index 2363784..df44f90 100644 --- a/HTML/calendar.html +++ b/HTML/calendar.html @@ -291,7 +291,7 @@ async function openNewCalWindow(evjs, day) { const ev = JSON.parse(evjs); - await new Promise((res, rej) => { res(window.open('https://www.selmerbot.com/calEvent.html','popUpWindow','loaction=no,width=600,height=300,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes')); }) + await new Promise((res, rej) => { res(window.open('https://www.selmerbot.com/calEvent','popUpWindow','loaction=no,width=600,height=300,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes')); }) .then((w) => { if (!w) { w.close(); return alert("Your browser has JavaScript Disabled!"); } @@ -306,7 +306,7 @@ async function createCalEvent(day) { - await new Promise((res, rej) => { res(window.open('https://www.selmerbot.com/newCalEvent.html','popUpWindow','loaction=no,width=400,height=350,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes')); }) + await new Promise((res, rej) => { res(window.open('https://www.selmerbot.com/newCalEvent','popUpWindow','loaction=no,width=400,height=350,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes')); }) .then((w) => { if (!w) { w.close(); return alert("Your browser has JavaScript Disabled!"); } diff --git a/HTML/dashboard.html b/HTML/dashboard.html index 7e8a49e..ce98215 100644 --- a/HTML/dashboard.html +++ b/HTML/dashboard.html @@ -281,7 +281,7 @@ async function openNewCalWindow(evjs, day) { const ev = JSON.parse(evjs); - await new Promise((res, rej) => { res(window.open('https://www.selmerbot.com/calEvent.html','popUpWindow','loaction=no,width=600,height=300,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes')); }) + await new Promise((res, rej) => { res(window.open('https://www.selmerbot.com/calEvent','popUpWindow','loaction=no,width=600,height=300,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes')); }) .then((w) => { if (!w) { w.close(); return alert("Your browser has JavaScript Disabled!"); } @@ -299,7 +299,7 @@ async function createCalEvent(day) { - await new Promise((res, rej) => { res(window.open('https://www.selmerbot.com/newCalEvent.html','popUpWindow','loaction=no,width=400,height=350,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes')); }) + await new Promise((res, rej) => { res(window.open('https://www.selmerbot.com/newCalEvent','popUpWindow','loaction=no,width=400,height=350,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes')); }) .then((w) => { if (!w) { w.close(); return alert("Your browser has JavaScript Disabled!"); } diff --git a/HTML/myGuilds.html b/HTML/myGuilds.html index 6965f26..3cf0039 100644 --- a/HTML/myGuilds.html +++ b/HTML/myGuilds.html @@ -123,7 +123,7 @@ xhr.setRequestHeader('sessionid', window.localStorage.getItem("sessionId")); xhr.onloadend = (e) => { // window.sessionStorage.setItem('serverInfo', (xhr.response)); - window.location = 'https://www.selmerbot.com/dashboard.html'; + window.location = 'https://www.selmerbot.com/dashboard'; } xhr.send(); }