Fix 'const in strict mode' error in very old Chrome

This commit is contained in:
tophf 2015-04-22 14:29:52 +03:00
parent c66ae794bc
commit 1156b3f989
2 changed files with 2 additions and 2 deletions

View File

@ -188,7 +188,7 @@ function fixBoolean(b) {
return null; return null;
} }
const namespacePattern = /^\s*(@namespace[^;]+;\s*)+$/; var namespacePattern = /^\s*(@namespace[^;]+;\s*)+$/;
function getApplicableSections(style, url) { function getApplicableSections(style, url) {
var sections = style.sections.filter(function(section) { var sections = style.sections.filter(function(section) {
return sectionAppliesToUrl(section, url); return sectionAppliesToUrl(section, url);

View File

@ -607,7 +607,7 @@ function initHooks() {
} }
function updateTitle() { function updateTitle() {
const DIRTY_TITLE = "* $"; var DIRTY_TITLE = "* $";
var name = document.getElementById("name").savedValue; var name = document.getElementById("name").savedValue;
var clean = isCleanGlobal(); var clean = isCleanGlobal();