We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb0b2f0 commit 01443b0Copy full SHA for 01443b0
soundboxBooking.js
@@ -17,9 +17,6 @@ const timetable = [
17
];
18
let selectedBlocks=[]
19
window.onload = function() {
20
- if(document.cookie.indexOf("token=")==-1){
21
- window.location.replace("/login_page.html")
22
- }
23
selectedBlocks=[]
24
let today = new Date();
25
if(today.getHours() >= 18) {
@@ -96,6 +93,7 @@ async function fetchSoundboxState(startDate) {
96
93
const result = await response.json();
97
94
return result;
98
95
} catch (e) {
+ window.location.replace("/login_page.html");
99
console.error("Error fetching soundbox state:", e);
100
return null;
101
}
0 commit comments