aboutsummaryrefslogtreecommitdiff
path: root/public/javascripts/main.js
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2016-10-08 14:49:57 +0200
committerNoah Loomans <noahloomans@gmail.com>2016-10-08 14:49:57 +0200
commitbb9e55ec41194a085cb7c627b7ef2c77938baa49 (patch)
tree5ed88f3db850aea162d52df3cfc565d9930143b3 /public/javascripts/main.js
parent836fef97e7162b8d3777528788ccf0d9a6ecbd21 (diff)
redirect hotfix
Diffstat (limited to 'public/javascripts/main.js')
-rw-r--r--public/javascripts/main.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/javascripts/main.js b/public/javascripts/main.js
index 89fb473..37e9677 100644
--- a/public/javascripts/main.js
+++ b/public/javascripts/main.js
@@ -18,7 +18,7 @@ const currentWeekNode = document.querySelector('.current')
const favNode = document.querySelector('.fav')
if (window.location.href.split('?')[1] !== 'nfd') { // nfd = no feature detection
- if (document.querySelector('#search').getClientRects()[0].height !== 70) {
+ if (document.querySelector('#schedule').getClientRects()[0].bottom !== document.body.offsetHeight) {
window.location = 'http://www.meetingpointmco.nl/Roosters-AL/doc/'
} else {
window.onerror = function () {