From d991eccd3f3312e35e1d3ed3071a5b8989d20f25 Mon Sep 17 00:00:00 2001 From: Alina Sireneva Date: Mon, 11 Mar 2024 16:42:10 +0300 Subject: [PATCH] fix: Promise.resolve --- packages/frontend/src/scripts/chiptune2.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {