fix: Promise.resolve

This commit is contained in:
Alina Sireneva 2024-03-11 16:42:10 +03:00
parent 0085305579
commit d991eccd3f

View File

@ -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 {