From 019c8814f62e45d341eac76220b1d6e47977ea41 Mon Sep 17 00:00:00 2001 From: Danny Coates Date: Tue, 20 Feb 2018 16:00:19 -0800 Subject: [PATCH] disable nanotiming without localstorage (as of 7.3.0) --- app/routes/index.js | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/app/routes/index.js b/app/routes/index.js index 1631cad8..2d9ff80c 100644 --- a/app/routes/index.js +++ b/app/routes/index.js @@ -1,21 +1,12 @@ -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 nanotiming = require('nanotiming'); const download = require('./download'); const header = require('../templates/header'); const footer = require('../templates/footer'); const fxPromo = require('../templates/fxPromo'); +nanotiming.disabled = true; const app = choo(); function banner(state, emit) {