thelounge/client/js/socket-events/sign_out.js
2017-07-31 02:02:15 +03:00

9 lines
182 B
JavaScript

"use strict";
const socket = require("../socket");
const storage = require("../localStorage");
socket.on("sign-out", function() {
storage.remove("token");
location.reload();
});