mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-16 06:18:35 +02:00
show how to persist data between restarts (#209)
This commit is contained in:
@@ -1,7 +1,14 @@
|
||||
# Quicknote
|
||||
|
||||
A persistent note/to-do list application — click a button in your browser and record notes, which will persist even after browser restarts.
|
||||
|
||||
Works in Firefox 47+, and will also work as a Chrome extension, out of the box.
|
||||
Works in Firefox 47+.
|
||||
|
||||
## Running with web-ext
|
||||
|
||||
[web-ext](https://developer.mozilla.org/en-US/Add-ons/WebExtensions) generates a new profile on each run, meaning your data is not persisted between Firefox runs. To use web-ext and preserve this information, you will need an existing or new Firefox profile. Then run:
|
||||
|
||||
web-ext run --firefox-profile [A PATH TO A FIREFOX PROFILE] --keep-profile-changes
|
||||
|
||||
## What it does
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
"manifest_version": 2,
|
||||
"name": "Quicknote",
|
||||
"version": "1.0",
|
||||
"version": "1.1",
|
||||
|
||||
"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. See https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Examples#quicknote",
|
||||
"icons": {
|
||||
@@ -19,5 +19,12 @@
|
||||
},
|
||||
"default_title": "Quicknote",
|
||||
"default_popup": "popup/quicknote.html"
|
||||
},
|
||||
|
||||
"applications": {
|
||||
"gecko": {
|
||||
"id": "quicknote-example@mozilla.org"
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user