Fix 'const in strict mode' error in very old Chrome
This commit is contained in:
parent
c66ae794bc
commit
1156b3f989
|
@ -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);
|
||||||
|
|
2
edit.js
2
edit.js
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user