probably best to close this
This commit is contained in:
parent
e820f0e7b9
commit
d08c41c13a
1 changed files with 1 additions and 0 deletions
|
@ -32,6 +32,7 @@ export async function detectWebkitEarlyCloseTxnBug() {
|
||||||
await Promise.resolve();
|
await Promise.resolve();
|
||||||
writeTxn.objectStore("test").add({key: "somekey", value: "foo"});
|
writeTxn.objectStore("test").add({key: "somekey", value: "foo"});
|
||||||
await txnAsPromise(writeTxn);
|
await txnAsPromise(writeTxn);
|
||||||
|
db.close();
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (err.name === "TransactionInactiveError") {
|
if (err.name === "TransactionInactiveError") {
|
||||||
return true;
|
return true;
|
||||||
|
|
Reference in a new issue