1
0

data.js 388 B

12345678910111213141516171819202122232425
  1. var
  2. /**
  3. * @type Slack
  4. **/
  5. SLACK;
  6. function Slack() {
  7. /** @type {number} */
  8. this.lastServerVersion = 0;
  9. }
  10. Slack.prototype.update = function(data) {
  11. if (data.v)
  12. this.lastServerVersion = data.v;
  13. if (data.static) {
  14. console.log("updated static");
  15. }
  16. if (data.live) {
  17. console.log("updated LIVE");
  18. }
  19. }
  20. SLACK = new Slack();