Fix: parseMozFormat is not called correctly

This commit is contained in:
eight 2018-09-02 16:14:15 +08:00
parent b3c36fc717
commit ca05a15219

View File

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