parent
841e556f42
commit
8d3fd9cc3b
|
@ -169,7 +169,8 @@ function createSourceEditor(style) {
|
||||||
dirty.clear('sourceGeneration');
|
dirty.clear('sourceGeneration');
|
||||||
}
|
}
|
||||||
if (codeIsUpdated === false || sameCode) {
|
if (codeIsUpdated === false || sameCode) {
|
||||||
style.enabled = newStyle.enabled;
|
// copy changed meta anyway
|
||||||
|
style = deepCopy(newStyle);
|
||||||
dirty.clear('enabled');
|
dirty.clear('enabled');
|
||||||
updateMeta();
|
updateMeta();
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -334,7 +334,7 @@ var usercss = (() => {
|
||||||
|
|
||||||
function unquote(s) {
|
function unquote(s) {
|
||||||
const q = s[0];
|
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/
|
// http://www.json.org/
|
||||||
return s.slice(1, -1).replace(
|
return s.slice(1, -1).replace(
|
||||||
new RegExp(`\\\\([${q}\\\\/bfnrt]|u[0-9a-fA-F]{4})`, 'g'),
|
new RegExp(`\\\\([${q}\\\\/bfnrt]|u[0-9a-fA-F]{4})`, 'g'),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user