Fixing spelling mistake

Fixing spelling mistake on indexedDbRequest.onsuccess promise reject
This commit is contained in:
XxKingsxX-Pinu 2022-01-10 15:17:04 +10:00 committed by GitHub
parent a53b36ed27
commit 034592678e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -24,7 +24,7 @@ function getDB(): Promise<IDBObjectStore> {
indexedDbRequest.onsuccess = function (this: IDBRequest<IDBDatabase>) {
const db = this.result;
if (!db) {
reject("database loadign result was undefined");
reject("database loading result was undefined");
return;
}
resolve(db.transaction(["savestring"], "readwrite").objectStore("savestring"));