From 1156b3f9898ed096d41bb0de42b890f046d2f623 Mon Sep 17 00:00:00 2001 From: tophf Date: Wed, 22 Apr 2015 14:29:52 +0300 Subject: [PATCH] Fix 'const in strict mode' error in very old Chrome --- background.js | 2 +- edit.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/background.js b/background.js index 95b97b82..351948e4 100644 --- a/background.js +++ b/background.js @@ -188,7 +188,7 @@ function fixBoolean(b) { return null; } -const namespacePattern = /^\s*(@namespace[^;]+;\s*)+$/; +var namespacePattern = /^\s*(@namespace[^;]+;\s*)+$/; function getApplicableSections(style, url) { var sections = style.sections.filter(function(section) { return sectionAppliesToUrl(section, url); diff --git a/edit.js b/edit.js index 39c6f0bf..62ea7f2a 100644 --- a/edit.js +++ b/edit.js @@ -607,7 +607,7 @@ function initHooks() { } function updateTitle() { - const DIRTY_TITLE = "* $"; + var DIRTY_TITLE = "* $"; var name = document.getElementById("name").savedValue; var clean = isCleanGlobal();