Fix: minor

This commit is contained in:
eight 2018-09-26 12:16:33 +08:00
parent 79833d8bba
commit 6909c73c69
2 changed files with 2 additions and 4 deletions

View File

@ -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": {

View File

@ -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},