diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 5d31b376..8fa5de10 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -826,7 +826,7 @@ } }, "meta_missingEOT": { - "message": "Expect EOT list", + "message": "Expect EOT data", "description": "Error displayed when the value is expected to be an EOT list" }, "meta_missingMandatory": { diff --git a/edit/codemirror-default.js b/edit/codemirror-default.js index 74fc2942..c3d1a993 100644 --- a/edit/codemirror-default.js +++ b/edit/codemirror-default.js @@ -373,9 +373,7 @@ CodeMirror.hint && (() => { // USO vars in usercss mode editor const vars = editor.getStyle().usercssData.vars; const list = vars ? - Object.keys(editor.getStyle().usercssData.vars) - .filter(name => name.startsWith(leftPart)) : - []; + Object.keys(vars).filter(name => name.startsWith(leftPart)) : []; return { list, from: {line, ch: prev},