| 12345678910111213141516171819202122232425 |
- var
- /**
- * @type Slack
- **/
- SLACK;
- function Slack() {
- /** @type {number} */
- this.lastServerVersion = 0;
- }
- Slack.prototype.update = function(data) {
- if (data.v)
- this.lastServerVersion = data.v;
- if (data.static) {
- console.log("updated static");
- }
- if (data.live) {
- console.log("updated LIVE");
- }
- }
- SLACK = new Slack();
|