You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To use the storage API on Firefox during development you need to add an addon ID to your manifest, otherwise, you will get this error:
236
+
To use the storage API on Firefox during development you need to add an Add-on ID to your manifest, otherwise, you will get this error:
236
237
237
238
> Error: The storage API will not work with a temporary addon ID. Please add an explicit addon ID to your manifest. For more information see https://mzl.la/3lPk1aE.
238
239
239
-
To add an addon ID to your manifest, add this to your package.json:
240
+
To add an Add-on ID to your manifest, add this to your `package.json`:
240
241
241
242
```JSON
242
243
"manifest": {
@@ -248,4 +249,14 @@ To add an addon ID to your manifest, add this to your package.json:
248
249
}
249
250
```
250
251
251
-
During development, you may use any ID. If you have published your extension, you can use the ID assigned by Mozilla Addons.
252
+
The format of Add-on IDs differ between manifest versions.
Once your extension is published, the Add-on ID defined in the `package.json` file _should_ be displayed in your extension's Developer Page under _"Technical Details > UUID"_.
258
+
259
+
**Note:** The Add-on ID used during development (i.e. the one defined in the manifest) will likely be the one Mozilla assigns to your when publishing. If it's not and one is
260
+
generated for you, you will have to update the `package.json` file with the new ID.
261
+
262
+
Add-on IDs are unique and the same one cannot be used for multiple extensions (both manifest versions).
0 commit comments