aboutsummaryrefslogtreecommitdiff
path: root/public/javascripts/main.js
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2016-11-11 10:51:45 +0100
committerGitHub <noreply@github.com>2016-11-11 10:51:45 +0100
commit08c34eb35178a0169ca0431bc4a5771bd77d7939 (patch)
tree9f81fe7aa42b22efa75d583b361217c345767cc2 /public/javascripts/main.js
parentd655b5c72ba4a2591564067639279f4522529afd (diff)
parent0cb55c1877c027bc6197a02f4758820cae36cae0 (diff)
Merge pull request #5 from nloomans/beta
fixed feature detect
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 () {