[phaser] Closes #2449, proper basePath resolution if assets are served from root

This commit is contained in:
Mario Zechner 2024-01-16 11:03:46 +01:00
parent 068a2bb6d0
commit 2c69c2604f

View File

@ -348,7 +348,7 @@ class SpineAtlasFile extends Phaser.Loader.MultiFile {
}
}
let basePath = file.src.match(/^.*\//);
let basePath = file.src.match(/^.*\//) ?? "";
for (var i = 0; i < textures.length; i++) {
var url = basePath + textures[i];
var key = file.key + "!" + textures[i];