mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-21 00:32:48 +02:00
more .eslintrc.json and fixes
This commit is contained in:
@@ -27,7 +27,7 @@ function initialize() {
|
||||
var gettingAllStorageItems = browser.storage.local.get(null);
|
||||
gettingAllStorageItems.then((results) => {
|
||||
var noteKeys = Object.keys(results);
|
||||
for(noteKey of noteKeys) {
|
||||
for (let noteKey of noteKeys) {
|
||||
var curValue = results[noteKey];
|
||||
displayNote(noteKey,curValue);
|
||||
}
|
||||
@@ -89,7 +89,7 @@ function displayNote(title, body) {
|
||||
/* set up listener for the delete functionality */
|
||||
|
||||
deleteBtn.addEventListener('click',(e) => {
|
||||
evtTgt = e.target;
|
||||
const evtTgt = e.target;
|
||||
evtTgt.parentNode.parentNode.parentNode.removeChild(evtTgt.parentNode.parentNode);
|
||||
browser.storage.local.remove(title);
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user