Fix: bad API

This commit is contained in:
eight 2018-10-01 23:24:29 +08:00
parent 1f2d116aae
commit 9058c06c54

View File

@ -453,7 +453,7 @@ function fromMozillaFormat() {
function doImport({replaceOldStyle = false}) { function doImport({replaceOldStyle = false}) {
lockPageUI(true); lockPageUI(true);
API.parseMozFormat({code: popup.codebox.getValue().trim()}) API.parseCss({code: popup.codebox.getValue().trim()})
.then(({sections, errors}) => { .then(({sections, errors}) => {
// shouldn't happen but just in case // shouldn't happen but just in case
if (!sections.length && errors.length) { if (!sections.length && errors.length) {