mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-21 00:32:48 +02:00
quicknote example updated
This commit is contained in:
@@ -129,10 +129,14 @@ function displayNote(title, body) {
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/* functions to update and store notes */
|
||||
|
||||
|
||||
function updateNote(delNote,newTitle,newBody) {
|
||||
storeNote(newTitle, newBody);
|
||||
displayNote(newTitle, newBody);
|
||||
localStorage.removeItem(delNote);
|
||||
displayNote(newTitle, newBody);
|
||||
}
|
||||
|
||||
function storeNote(title, body) {
|
||||
|
||||
Reference in New Issue
Block a user