We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
saveWord
1 parent 572aed3 commit 000a467Copy full SHA for 000a467
background/background.js
@@ -81,14 +81,14 @@ function extractMeaning (document, context) {
81
82
function saveWord (content) {
83
let word = content.word,
84
- meaning = content.meaning,
+ meaningArray = content.meaningArray,
85
86
storageItem = browser.storage.local.get('definitions');
87
88
storageItem.then((results) => {
89
let definitions = results.definitions || {};
90
91
- definitions[word] = meaning;
+ definitions[word] = meaningArray.join(' ');
92
browser.storage.local.set({
93
definitions
94
});
0 commit comments