diff --git a/client/screen/newmenu.js b/client/screen/newmenu.js index 7c9266fd..dfa90fbc 100644 --- a/client/screen/newmenu.js +++ b/client/screen/newmenu.js @@ -18,7 +18,7 @@ class NewMenu extends Screen { super.initialize(props); this.backButton.click(this.onBack); - this.goButton.click(function () { + this.goButton.click(() => { if (!this.isLoading) { this.waitingForResponse(true); const name = $("#newinname").val(); diff --git a/server/routes/main.js b/server/routes/main.js index d91ac8b5..e053e3fa 100644 --- a/server/routes/main.js +++ b/server/routes/main.js @@ -1,4 +1,4 @@ -import webpackAssets from "../../webpack-assets.json"; +import webpackAssets from "../../webpack-assets.json" assert { type: "json" }; import WordPacks from "../app/words.js"; const { getAllPackNames } = WordPacks; diff --git a/server/views/index.pug b/server/views/index.pug index b01fc61c..8e6c176b 100644 --- a/server/views/index.pug +++ b/server/views/index.pug @@ -15,8 +15,8 @@ block content div#mainmenu.d-none include announcements.pug .btn-toolbar.mt-3 - a.btn.btn-default.btn-lg.mr-2(href="https://rocketcrab.com/join",type='button') Join Party - a.btn.btn-default.btn-lg(href="https://rocketcrab.com/transfer/drawphone",type='button') Start Party + button.btn.btn-default.btn-lg.mr-2(id="joinbtn", type='button') Join Party + button.btn.btn-default.btn-lg(id="newbtn", type='button') Start Party .mt-3.mb-3 |Powered by img.rocketsvg.ml-1(src='https://rocketcrab.com/rocket.svg' alt='' width='16')