From 5ecb93ca039fe6d4124741b50d06d570878ae328 Mon Sep 17 00:00:00 2001 From: Tom Rothe Date: Wed, 10 Apr 2019 15:28:09 +0200 Subject: [PATCH] remove const for var --- css_grid_annotator.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/css_grid_annotator.js b/css_grid_annotator.js index 8e33e5b..a70904e 100644 --- a/css_grid_annotator.js +++ b/css_grid_annotator.js @@ -10,7 +10,7 @@ /* eslint-disable */ function cssGridAnnotate() { // check if we have IE11 - const agent = navigator.userAgent; + var agent = navigator.userAgent; var isIE11 = (agent.indexOf("Trident") >= 0) && (agent.indexOf("rv:11") >= 0); if (!isIE11) { return; @@ -56,7 +56,7 @@ function cssGridAnnotate() { } function isGridContainer(elm) { - const styles = window.getComputedStyle(elm); + var styles = window.getComputedStyle(elm); return styles.display === CSS_DISPLAY_GRID; }