mirror of
https://github.com/AlecM33/Werewolf.git
synced 2026-01-02 01:03:24 +01:00
remove redundant promise handler
This commit is contained in:
@@ -3,8 +3,6 @@ import { io } from 'socket.io-client';
|
||||
import gameTemplate from '../view_templates/GameTemplate.js';
|
||||
import { toast } from '../modules/front_end_components/Toast.js';
|
||||
|
||||
gameHandler(io('/in-game'), window, gameTemplate).then(() => {
|
||||
toast('Connecting...', 'warning', true, false);
|
||||
}).catch((e) => {
|
||||
gameHandler(io('/in-game'), window, gameTemplate).catch((e) => {
|
||||
toast(e.message, 'error', true, false);
|
||||
});
|
||||
|
||||
@@ -18,7 +18,7 @@ const template =
|
||||
<div></div>
|
||||
<div></div>
|
||||
</div>
|
||||
<p>Waiting for connection to Room...</p>
|
||||
<p>Connecting to the Room...</p>
|
||||
</div>
|
||||
<div id="mobile-menu-background-overlay"></div>
|
||||
<div id="navbar"></div>
|
||||
|
||||
Reference in New Issue
Block a user