fix: correct handling of error code

This commit is contained in:
Derrick Hammer 2023-11-04 03:34:21 -04:00
parent 9bfbc3a145
commit 312f8ab43a
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 5 additions and 2 deletions

View File

@ -28,8 +28,11 @@ function testIndexedDBSupport() {
request.onerror = function (event) {
// Error occurred, reject the promise
// @ts-ignore
reject(new Error("IndexedDB test error: " + event?.target?.errorCode));
reject(
// @ts-ignore
new Error("IndexedDB test error: " + event?.target?.error?.code),
);
};
request.onsuccess = function (event) {