Skip to content

Commit

Permalink
Teeny schemas.js fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaKGoldberg committed Aug 30, 2020
1 parent 68a8d36 commit ec8534b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions public/js/schemas.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// TODO: In #5, we'll investigate moving this into src/.
NAF.schemas.add({
template: "#avatar-template",
components: [
Expand Down
8 changes: 6 additions & 2 deletions src/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,12 @@ export default class KaraokeNiteDocument extends Document<
].map(script)}
</Head>
<body>
{room && <RoomBody />}
{script("/js/schemas.js")}
{room && (
<>
<RoomBody />
<script src="/js/schemas.js" />
</>
)}
<Main />
<NextScript />
</body>
Expand Down

0 comments on commit ec8534b

Please sign in to comment.