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

9 lines
172 B
TypeScript
Raw Normal View History

import constants from "../constants";
2019-11-16 18:24:03 +01:00
import socket from "../socket";
2019-07-02 18:02:02 +02:00
socket.on("commands", function (commands) {
2019-07-02 18:02:02 +02:00
if (commands) {
constants.commands = commands;
2019-07-02 18:02:02 +02:00
}
});