Skip to content

Commit 000a467

Browse files
committed
fix broken saveWord
1 parent 572aed3 commit 000a467

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

background/background.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,14 @@ function extractMeaning (document, context) {
8181

8282
function saveWord (content) {
8383
let word = content.word,
84-
meaning = content.meaning,
84+
meaningArray = content.meaningArray,
8585

8686
storageItem = browser.storage.local.get('definitions');
8787

8888
storageItem.then((results) => {
8989
let definitions = results.definitions || {};
9090

91-
definitions[word] = meaning;
91+
definitions[word] = meaningArray.join(' ');
9292
browser.storage.local.set({
9393
definitions
9494
});

0 commit comments

Comments
 (0)