Index: gc_lang/fr/webext/panel/lex_editor.js ================================================================== --- gc_lang/fr/webext/panel/lex_editor.js +++ gc_lang/fr/webext/panel/lex_editor.js @@ -589,17 +589,21 @@ let xPromise = browser.storage.local.get("oDictionary"); xPromise.then(this._load.bind(this), showError); }, _load: function (oResult) { - if (oResult.hasOwnProperty("oDictionary")) { + if (!oResult.hasOwnProperty("oDictionary")) { oWidgets.hideElement("export_button"); return; } this.oJSON = oResult.oDictionary; this.oIBDAWG = new IBDAWG(this.oJSON); - oLexicon.set([oIBDAWG.select()]); + let lEntry = []; + for (let s of this.oIBDAWG.select()) { + lEntry.push(s.split("\t")); + } + oLexicon.set(lEntry); oWidgets.showElement("export_button"); }, build: function (lEntry) { oWidgets.showElement("build_progress");