From a78150b7ad468090dbbbde4f7166916b51e87aa4 Mon Sep 17 00:00:00 2001 From: Danny Coates Date: Wed, 7 Feb 2018 18:52:41 -0800 Subject: [PATCH] disable nanotiming --- app/routes/index.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/routes/index.js b/app/routes/index.js index 67818e58..df41d0d3 100644 --- a/app/routes/index.js +++ b/app/routes/index.js @@ -1,3 +1,14 @@ +try { + // It's kind of silly that this needs to be here... + // 'nanotiming' reads this *on initialization* so + // the only way to make sure it's disabled from the + // first page load is to set it before we even + // require('choo') + localStorage.setItem('DISABLE_NANOTIMING', true); +} catch (e) { + // localStorage is disabled. nanotiming will also be +} + const choo = require('choo'); const html = require('choo/html'); const download = require('./download');