parent
841e556f42
commit
8d3fd9cc3b
|
@ -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;
|
||||
|
|
|
@ -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'),
|
||||
|
|
Loading…
Reference in New Issue
Block a user