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: playground not working on firefox #3824

Merged
merged 1 commit into from
Aug 3, 2023
Merged

Conversation

pengx17
Copy link
Contributor

@pengx17 pengx17 commented Aug 3, 2023

related to toeverything/AFFiNE#3494

The issue of DOMException: IDBDatabase.transaction: 'workspace' is not a known object store name error is that in Firefox the testIDBExistence function will create an empty DB that will result in skipping upgrading the DB that is defined in affine.

I have checked the new implementation of testIDBExistence and it shall not create a new DB in both Chrome and Firefox on calling testIDBExistence. However I think you may need to remove the local PLAYGROUND_DB one in Firefox, or passing ?init in the query params to make it work.

@codesandbox
Copy link

codesandbox bot commented Aug 3, 2023

This branch is running in CodeSandbox. Use the links below to review this PR faster.


CodeSandbox logoCodeSandbox logo  Open in CodeSandbox Web Editor | VS Code | VS Code Insiders | Preview

@pengx17 pengx17 requested a review from fourdim August 3, 2023 12:47
@vercel
Copy link

vercel bot commented Aug 3, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
blocksuite ✅ Ready (Inspect) Visit Preview Aug 3, 2023 0:47am
1 Ignored Deployment
Name Status Preview Updated (UTC)
blocksuite-docs ⬜️ Ignored (Inspect) Aug 3, 2023 0:47am

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

Successfully merging this pull request may close these issues.

None yet

2 participants