Skip to content

Commit

Permalink
Update popup.js
Browse files Browse the repository at this point in the history
  • Loading branch information
zeyadetman authored Apr 15, 2019
1 parent f8c0b90 commit 9581dc8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ function addWord(newWord) {
//' '_5jmm'' //_5pat //_5pbx
chrome.storage.sync.set({
words: JSON.stringify([...newWords, newWord])
}, listWords);
}, () => {
document.getElementById('wordinput').value = '';
listWords();
});
});
}

Expand Down

0 comments on commit 9581dc8

Please sign in to comment.