Skip to content

Replace localforage with browser extension storage. Fixes #459#480

Merged
marcelklehr merged 3 commits intofloccusaddon:developfrom
mlshapiro:develop
Apr 4, 2020
Merged

Replace localforage with browser extension storage. Fixes #459#480
marcelklehr merged 3 commits intofloccusaddon:developfrom
mlshapiro:develop

Conversation

@mlshapiro
Copy link
Copy Markdown
Contributor

This PR reverts some changes from da085e0 and 5739a5c.

@marcelklehr
Copy link
Copy Markdown
Member

Thanks for taking this on. Dumping localforage makes me sad in a way, as it is more performant than the normal extension storage, but I guess the main bottleneck is not the storage.

Comment thread src/lib/Controller.js
Comment thread src/lib/AccountStorage.js Outdated
@mlshapiro
Copy link
Copy Markdown
Contributor Author

@marcelklehr your requested changes should be handled. Thanks for the review.

@marcelklehr marcelklehr merged commit 212375c into floccusaddon:develop Apr 4, 2020
Comment thread src/lib/Controller.js
localForage.getItem('accounts')
.then(async d => {
if (!d.accounts) return
return AccountStorage.changeEntry('accounts', () => d.accounts)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gnaaa, this doesn't work. I should have noticed.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hm, I'm sorry to hear that. I tested the upgrade process using the version of the develop branch and had success getting my accounts to update.

I guess its a problem if you are coming from an older version that had the browser storage to begin with.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Mar 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants