Skip to content

Commit

Permalink
remove const for var
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Rothe committed Apr 10, 2019
1 parent 0511837 commit 5ecb93c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions css_grid_annotator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 5ecb93c

Please sign in to comment.