mirror of
https://github.com/AlecM33/Werewolf.git
synced 2025-12-26 15:57:50 +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 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);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user