Skip to content

Commit

Permalink
move script at end
Browse files Browse the repository at this point in the history
  • Loading branch information
coyotte508 committed Oct 4, 2024
1 parent 192eefc commit 0fb3af0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/api/app/resources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ router.get("/game/:game_name/:game_version/iframe", async (ctx) => {
<html>
<head>
<meta charset="UTF-8">
${viewer.dependencies.scripts.map((dep) => `<${"script"} src='${dep}'></${"script"}>`).join("\n")}
<${"script"} src='${viewerUrl}' type='text/javascript'> </${"script"}>
${viewer.dependencies.stylesheets
.map((dep) => `<link type='text/css' rel='stylesheet' href='${dep}'></link>`)
.join("\n")}
Expand Down Expand Up @@ -143,6 +141,8 @@ router.get("/game/:game_name/:game_version/iframe", async (ctx) => {
}, 250);
}
</${"script"}>
${viewer.dependencies.scripts.map((dep) => `<${"script"} src='${dep}'></${"script"}>`).join("\n")}
<${"script"} src='${viewerUrl}' type='text/javascript'> </${"script"}>
</html>`;
});

Expand Down

0 comments on commit 0fb3af0

Please sign in to comment.