From bb9e55ec41194a085cb7c627b7ef2c77938baa49 Mon Sep 17 00:00:00 2001 From: Noah Loomans Date: Sat, 8 Oct 2016 14:49:57 +0200 Subject: redirect hotfix --- public/javascripts/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'public/javascripts/main.js') 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 () { -- cgit v1.1