From 087bcf0ae608bdf47db6fd2c28e1a549afdc0028 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Tue, 4 Feb 2020 11:11:06 +0000 Subject: [PATCH] fix declaration order --- src/vector/app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vector/app.js b/src/vector/app.js index 6267ed0b..b2d9e02c 100644 --- a/src/vector/app.js +++ b/src/vector/app.js @@ -54,6 +54,8 @@ import CallHandler from 'matrix-react-sdk/src/CallHandler'; let lastLocationHashSet = null; function checkBrowserFeatures(featureList) { + let featureComplete = true; + // custom checks atop Modernizr because it doesn't have ES2018/ES2019 checks in it for some features we depend on: // ran prior to Modernizr so the missing features are logged even if Modernizr is broken // ES2018: http://www.ecma-international.org/ecma-262/9.0/#sec-promise.prototype.finally @@ -71,7 +73,6 @@ function checkBrowserFeatures(featureList) { console.error("Cannot check features - Modernizr global is missing."); return false; } - let featureComplete = true; for (let i = 0; i < featureList.length; i++) { if (window.Modernizr[featureList[i]] === undefined) { console.error(