mirror of
https://github.com/AlecM33/Werewolf.git
synced 2025-12-29 01:07:50 +01:00
middleware for content-type validation, refactoring
This commit is contained in:
@@ -1,13 +1,7 @@
|
||||
import { injectNavbar } from '../modules/Navbar.js';
|
||||
import { io } from 'socket.io-client';
|
||||
import { toast } from '../modules/Toast';
|
||||
|
||||
const howToUse = () => {
|
||||
injectNavbar();
|
||||
const socket = io();
|
||||
socket.on('broadcast', (message) => {
|
||||
toast(message, 'warning', true, false);
|
||||
});
|
||||
};
|
||||
|
||||
if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') {
|
||||
|
||||
Reference in New Issue
Block a user