Skip to content

Commit c6ff3ce

Browse files
committed
fix: correct file path check for main module loading
1 parent 6be711a commit c6ff3ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/web/src/loader/loader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const loadGameFiles = async (
1212
let mainModule = undefined;
1313
logger.info("Starting load game files from cache");
1414
for (const file of manifest.files) {
15-
if (file.path === "index.js") {
15+
if (file.path === "/index.js") {
1616
const resModule = await loadScript(file);
1717
if (resModule) mainModule = resModule;
1818
continue;

0 commit comments

Comments
 (0)