mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 03:52:14 +00:00
16 lines
349 B
JavaScript
16 lines
349 B
JavaScript
|
|
exports.create = function(model) {
|
||
|
|
|
||
|
|
this.connect = function() {
|
||
|
|
// Hide the reconnect link for a second after clicking it
|
||
|
|
model.set('hideReconnect', true)
|
||
|
|
setTimeout(function() {
|
||
|
|
model.set('hideReconnect', false)
|
||
|
|
}, 1000)
|
||
|
|
model.socket.socket.connect()
|
||
|
|
}
|
||
|
|
|
||
|
|
this.reload = function() {
|
||
|
|
window.location.reload()
|
||
|
|
}
|
||
|
|
}
|