aboutsummaryrefslogtreecommitdiff
path: root/public/javascripts/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/javascripts/main.js')
-rw-r--r--public/javascripts/main.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/public/javascripts/main.js b/public/javascripts/main.js
index 98346dd..016a8ee 100644
--- a/public/javascripts/main.js
+++ b/public/javascripts/main.js
@@ -19,7 +19,8 @@ const favNode = document.querySelector('.fav')
if (!(window.location.href.split('?')[1] &&
window.location.href.split('?')[1].indexOf('nfd') >= 0)) { // nfd = no feature detection
- if (document.querySelector('#schedule').getClientRects()[0].bottom !== document.body.offsetHeight) {
+ if (document.querySelector('#schedule').getClientRects()[0].bottom !==
+ document.body.getClientRects()[0].bottom) {
window.location = 'http://www.meetingpointmco.nl/Roosters-AL/doc/'
} else {
window.onerror = function () {