diff --git a/packages/frontend/src/scripts/chiptune2.ts b/packages/frontend/src/scripts/chiptune2.ts index d2f09b692a..3cc34c0040 100644 --- a/packages/frontend/src/scripts/chiptune2.ts +++ b/packages/frontend/src/scripts/chiptune2.ts @@ -25,7 +25,7 @@ export function ChiptuneJsPlayer (config: object) { ChiptuneJsPlayer.prototype.initialize = function() { if (libopenmptLoadPromise) return libopenmptLoadPromise; - if (libopenmpt) return; + if (libopenmpt) return Promise.resolve(); libopenmptLoadPromise = new Promise(async (resolve, reject) => { try {