mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-22 16:53:08 +02:00
fix: Promise.resolve
This commit is contained in:
parent
0085305579
commit
d991eccd3f
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ export function ChiptuneJsPlayer (config: object) {
|
||||||
|
|
||||||
ChiptuneJsPlayer.prototype.initialize = function() {
|
ChiptuneJsPlayer.prototype.initialize = function() {
|
||||||
if (libopenmptLoadPromise) return libopenmptLoadPromise;
|
if (libopenmptLoadPromise) return libopenmptLoadPromise;
|
||||||
if (libopenmpt) return;
|
if (libopenmpt) return Promise.resolve();
|
||||||
|
|
||||||
libopenmptLoadPromise = new Promise(async (resolve, reject) => {
|
libopenmptLoadPromise = new Promise(async (resolve, reject) => {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue