From ec8534b03a8ab85c0e933053a3bbdfb9c920a761 Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Sun, 30 Aug 2020 05:57:21 -0400 Subject: [PATCH] Teeny schemas.js fix --- public/js/schemas.js | 1 + src/pages/_document.tsx | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/public/js/schemas.js b/public/js/schemas.js index afdafc8..c15b3d0 100644 --- a/public/js/schemas.js +++ b/public/js/schemas.js @@ -1,3 +1,4 @@ +// TODO: In #5, we'll investigate moving this into src/. NAF.schemas.add({ template: "#avatar-template", components: [ diff --git a/src/pages/_document.tsx b/src/pages/_document.tsx index edf28aa..dd7bd53 100644 --- a/src/pages/_document.tsx +++ b/src/pages/_document.tsx @@ -45,8 +45,12 @@ export default class KaraokeNiteDocument extends Document< ].map(script)} - {room && } - {script("/js/schemas.js")} + {room && ( + <> + +