Skip to content

Commit

Permalink
portiaui: fix: TypeError: (intermediate value).observes is not a func…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
milahu committed Apr 15, 2022
1 parent 5f8c60b commit cd1d873
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions portiaui/app/services/web-socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default Service.extend(Evented, {
}
},

_updateCountdownTimer: function() {
_updateCountdownTimer: Ember.observer('secondsUntilReconnect', function() {
if(this.secondsUntilReconnect === 0 && this.get('countdownTid')) {
clearInterval(this.get('countdownTid'));
this.set('countdownTid', null);
Expand All @@ -61,7 +61,7 @@ export default Service.extend(Evented, {
this.decrementProperty('secondsUntilReconnect');
}, 1000));
}
}.observes('secondsUntilReconnect'),
}),

_onclose(e) {
if (this.heartbeat) {
Expand Down

0 comments on commit cd1d873

Please sign in to comment.