disable nanotiming without localstorage (as of 7.3.0)
This commit is contained in:
parent
46249935b2
commit
019c8814f6
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue