This repository has been archived by the owner on Dec 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 974
Object expected in chrome.storage.sync.get callback #7314
Milestone
Comments
Moving to 0.13.7 |
didn't we talk about making sync storage just point to regular storage? |
@bridiver We had indeed floated that idea in the past :) Of course, now that we have Brave Sync, I wonder how feasible it would be to integrate there. |
doing it right now |
it will actually point to a separate local storage instance |
fixed brave/muon@6c89ced |
marked as no QA needed; extension compatibility tracked with https://github.com/brave/browser-laptop/projects/1 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When calling
chrome.storage.sync.get
, the user passes along a callback function. When this function is executed, the first argument is expected to be an object. Presently, it isundefined
. This causes errors to be thrown when attempting to access any property.As an example, the following is from the Mercury extension:
During the attempt to setState, the call to
myObj.mercuryTheme
will throw.The text was updated successfully, but these errors were encountered: