autofix no-var

This commit is contained in:
Thomas Grainger 2017-04-13 18:08:50 +01:00
parent 31e5d785fe
commit b33f73ac9a
No known key found for this signature in database
GPG key ID: 995EA0A029283160
61 changed files with 699 additions and 698 deletions

View file

@ -8,7 +8,7 @@
* @constructor
* @param {App} app - The main view object for CyberChef.
*/
var WindowWaiter = function(app) {
const WindowWaiter = function(app) {
this.app = app;
};
@ -45,7 +45,7 @@ WindowWaiter.prototype.windowBlur = function() {
* a long time and the browser has swapped out all its memory.
*/
WindowWaiter.prototype.windowFocus = function() {
var unfocusedTime = new Date().getTime() - this.windowBlurTime;
const unfocusedTime = new Date().getTime() - this.windowBlurTime;
if (unfocusedTime > 60000) {
this.app.silentBake();
}