-
Notifications
You must be signed in to change notification settings - Fork 22.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Note re exception from storage.managed.get #36586
Note re exception from storage.managed.get #36586
Conversation
Preview URLs
External URLs (4)URL:
URL:
(comment last updated: 2024-11-01 02:47:42) |
@@ -28,22 +28,14 @@ Where `<storageType>` is one of the storage types — {{WebExtAPIRef("storage.sy | |||
|
|||
### Return value | |||
|
|||
A [`Promise`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) that resolves to a `results` object, containing every object in `keys` that was found in the storage area. If `keys` is an object, keys that are not found in the storage area will have their values given by the `keys` object. | |||
A [`Promise`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) that resolves to a `results` object, containing every object in `keys` found in the storage area. If `keys` is an object, keys that are not found in the storage area have their values given by the `keys` object. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
containing every object in
keys
found in the storage area.
The wording here seems a little off. The value associated with a given may be a primitive value rather than an object. Also, the structure of this sentence seems a little harder to parse than necessary. What do you think about this?
containing a key-value pair for every matching key found in the storage area.
files/en-us/mozilla/add-ons/webextensions/api/storage/storagearea/get/index.md
Outdated
Show resolved
Hide resolved
files/en-us/mozilla/add-ons/webextensions/api/storage/storagearea/get/index.md
Outdated
Show resolved
Hide resolved
Co-authored-by: Simeon Vincent <svincent@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Description
Adds a note about the exception from storage.managed.get when the manage storage manifest isn't present.
Motivation
Documents a known issue with Firefox
Additional details
Originally noted as a documentation need in feedback on mdn/webextensions-examples#554