diff --git a/src/kernel.ts b/src/kernel.ts index cbeb3e9..65dc938 100644 --- a/src/kernel.ts +++ b/src/kernel.ts @@ -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) {