Skip to content
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

Fix preset saving #64

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Fix preset saving #64

wants to merge 2 commits into from

Conversation

richardfrost
Copy link

Thanks for the great extension, I really enjoy it. I was also noticing the bug described in #48, but haven't really had a chance to dig into it until now. I found that unfortunately the call to chrome.storage.sync.set after the switch was getting called asynchronously before a particular case block was completed. This would effectively make it seem like nothing was being save/changed, because it the set was happening before the change took place.

This solution was the best one I came up with so far, and it seems to work. I'm happy to refactor it a different way if you would like, or implement any other suggestions you might have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant