mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01: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()
|
|
}
|
|
}
|