diff --git a/edit/source-editor.js b/edit/source-editor.js index 47438e07..ef7754ab 100644 --- a/edit/source-editor.js +++ b/edit/source-editor.js @@ -169,7 +169,8 @@ function createSourceEditor(style) { dirty.clear('sourceGeneration'); } if (codeIsUpdated === false || sameCode) { - style.enabled = newStyle.enabled; + // copy changed meta anyway + style = deepCopy(newStyle); dirty.clear('enabled'); updateMeta(); return; diff --git a/js/usercss.js b/js/usercss.js index 406f991d..24b7903c 100644 --- a/js/usercss.js +++ b/js/usercss.js @@ -334,7 +334,7 @@ var usercss = (() => { function unquote(s) { const q = s[0]; - if (q === s[s.length - 1] && (q === '"' || q === "'")) { + if (q === s[s.length - 1] && (q === '"' || q === "'" || q === '`')) { // http://www.json.org/ return s.slice(1, -1).replace( new RegExp(`\\\\([${q}\\\\/bfnrt]|u[0-9a-fA-F]{4})`, 'g'),