diff --git a/.DS_Store b/.DS_Store index 792bf5a..98d9b98 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/quicknote/manifest.json b/quicknote/manifest.json index 22830f9..a5aeb2a 100644 --- a/quicknote/manifest.json +++ b/quicknote/manifest.json @@ -1,10 +1,14 @@ { - "description": "Allows the user to make quick notes by clicking a button and entering text into the resulting popup. The notes are saved in storage and synced across the user's sync login, even across different devices. See https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Examples#quicknote", "manifest_version": 1, "name": "Quicknote", "version": "1.0", - "homepage_url": "https://github.com/chrisdavidmills/webextensions-examples/tree/master/quicknote", + + "description": "Allows the user to make quick notes by clicking + a button and entering text into the resulting popup. + The notes are saved in storage and synced across + the user's sync login, even across different devices. + See https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Examples#quicknote", "icons": { "48": "icons/quicknote-48.png" }, @@ -24,5 +28,5 @@ "default_icon": "icons/quicknote-32.png", "default_title": "Quicknote", "default_popup": "popup/quicknote.html" - }, + } } diff --git a/quicknote/popup/quicknote.js b/quicknote/popup/quicknote.js index a6902b8..8c902d6 100644 --- a/quicknote/popup/quicknote.js +++ b/quicknote/popup/quicknote.js @@ -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) {