From 6909c73c698a81d4897af3a54cd73663ac012559 Mon Sep 17 00:00:00 2001 From: eight Date: Wed, 26 Sep 2018 12:16:33 +0800 Subject: [PATCH] Fix: minor --- _locales/en/messages.json | 2 +- edit/codemirror-default.js | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) 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},