fix: correct handling of error code
This commit is contained in:
parent
9bfbc3a145
commit
312f8ab43a
|
@ -28,8 +28,11 @@ function testIndexedDBSupport() {
|
|||
|
||||
request.onerror = function (event) {
|
||||
// Error occurred, reject the promise
|
||||
|
||||
reject(
|
||||
// @ts-ignore
|
||||
reject(new Error("IndexedDB test error: " + event?.target?.errorCode));
|
||||
new Error("IndexedDB test error: " + event?.target?.error?.code),
|
||||
);
|
||||
};
|
||||
|
||||
request.onsuccess = function (event) {
|
||||
|
|
Loading…
Reference in New Issue