From 7b8849b8355f05d97d4b038287c29865d5a0decd Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Mon, 27 Feb 2017 14:51:33 +0100 Subject: [PATCH] :art: --- static/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/static/index.js b/static/index.js index 5c65cbd46..8809bf436 100644 --- a/static/index.js +++ b/static/index.js @@ -10,7 +10,7 @@ window.onload = function () { try { - var startTime = Date.now() + const startTime = Date.now() process.on('unhandledRejection', function (error, promise) { console.error('Unhandled promise rejection %o with error: %o', promise, error) @@ -25,7 +25,7 @@ requireFunction = useSnapshot ? snapshotResult.customRequire : require if (devMode) { - var metadata = require('../package.json') + const metadata = require('../package.json') if (!metadata._deprecatedPackages) { try { metadata._deprecatedPackages = require('../script/deprecated-packages.json') @@ -102,7 +102,7 @@ function profileStartup (initialTime) { function profile () { console.profile('startup') - var startTime = Date.now() + const startTime = Date.now() setupWindow().then(function () { setLoadTime(Date.now() - startTime + initialTime) console.profileEnd('startup')