thelounge/client/js/socket-events/commands.js

8 lines
177 B
JavaScript

const constants = require("../constants");
import socket from "../socket";
socket.on("commands", function (commands) {
if (commands) {
constants.commands = commands;
}
});