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

IDBObjectStore does not have EventHalder. createObjectStore() should be wrapped in try/catch. #27

Open
Konstantin-Glukhov opened this issue Nov 23, 2024 · 2 comments

Comments

@Konstantin-Glukhov
Copy link

Konstantin-Glukhov commented Nov 23, 2024

According to https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore
IDBObjectStore does not have EventHandler. createObjectStore() should be wrapped in try/catch.

      try {
        request.result.createObjectStore(storeName);
      } catch (error) {
        reject(error); // If there is an error during upgrade, reject the Promise
      }
@julienetie
Copy link
Owner

Thanks, I will look into this during this week, feel free to raise a PR if needed urgently.

@julienetie
Copy link
Owner

Will merge once tested: #28

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

No branches or pull requests

2 participants