Skip to content

Commit 0c52a0a

Browse files
authored
Merge pull request #12 from NanoForge-dev/fix/correct-main-file-path
Correct file path check for main module loading
2 parents 3fc3883 + 8045055 commit 0c52a0a

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)