Files
habitica/ui/connectionAlert/index.js
2012-06-20 20:47:08 -04:00

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()
}
}