[CodeFactor] Apply fixes to commit c3cb293

This commit is contained in:
codefactor-io
2024-09-08 09:33:59 +00:00
parent c3cb2937c9
commit 272deb2b8c
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -56,7 +56,7 @@ export async function loadBackground() {
backgroundContainer.remove();
}
return;
};
}
const background = await getDataById(selectedBackgroundId);
if (!background) return;
@@ -77,7 +77,7 @@ export async function loadBackground() {
mediaContainer = document.createElement('div');
mediaContainer.id = 'media-container';
backgroundContainer.appendChild(mediaContainer);
};
}
mediaContainer = document.getElementById('media-container');
if (!mediaContainer) return;
@@ -1,4 +1,4 @@
import { openDB, type IDBPDatabase, type DBSchema } from 'idb';
import { type DBSchema, type IDBPDatabase, openDB } from 'idb';
interface BackgroundDB extends DBSchema {
backgrounds: {