load imported samples directly in prebake

This commit is contained in:
Felix Roos 2023-12-27 12:45:27 +01:00
parent e2a082f748
commit 8bde87246b
3 changed files with 3 additions and 3 deletions

View file

@ -24,7 +24,7 @@ const clearIDB = () => {
};
// queries the DB, and registers the sounds so they can be played
export const registerSamplesFromDB = (config, onComplete = () => {}) => {
export const registerSamplesFromDB = (config = userSamplesDBConfig, onComplete = () => {}) => {
openDB(config, (objectStore) => {
let query = objectStore.getAll();
query.onsuccess = (event) => {