remove redundant promise handler

This commit is contained in:
AlecM33
2023-08-13 18:56:04 -04:00
parent da0d69062e
commit b4ad379414
2 changed files with 2 additions and 4 deletions

View File

@@ -3,8 +3,6 @@ import { io } from 'socket.io-client';
import gameTemplate from '../view_templates/GameTemplate.js'; import gameTemplate from '../view_templates/GameTemplate.js';
import { toast } from '../modules/front_end_components/Toast.js'; import { toast } from '../modules/front_end_components/Toast.js';
gameHandler(io('/in-game'), window, gameTemplate).then(() => { gameHandler(io('/in-game'), window, gameTemplate).catch((e) => {
toast('Connecting...', 'warning', true, false);
}).catch((e) => {
toast(e.message, 'error', true, false); toast(e.message, 'error', true, false);
}); });

View File

@@ -18,7 +18,7 @@ const template =
<div></div> <div></div>
<div></div> <div></div>
</div> </div>
<p>Waiting for connection to Room...</p> <p>Connecting to the Room...</p>
</div> </div>
<div id="mobile-menu-background-overlay"></div> <div id="mobile-menu-background-overlay"></div>
<div id="navbar"></div> <div id="navbar"></div>