middleware for content-type validation, refactoring

This commit is contained in:
AlecM33
2022-07-05 19:17:36 -04:00
parent 4c94fb98df
commit de3a2b64cb
9 changed files with 29 additions and 33 deletions

View File

@@ -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') {