diff options
| author | Andrej Mihajlov <and@codeispoetry.ru> | 2017-03-16 17:04:21 +0000 |
|---|---|---|
| committer | Andrej Mihajlov <and@codeispoetry.ru> | 2017-03-16 17:04:21 +0000 |
| commit | e018e522c1aaf085d5933a8b8c67fd8ea09aa26a (patch) | |
| tree | 567ea4ebbeb0f30c2b8fc2bc80a0c802492936ba /app/lib | |
| parent | 62085e0ae04ae601fc8e2eb77a3ef7d8a22801b1 (diff) | |
| download | mullvadvpn-e018e522c1aaf085d5933a8b8c67fd8ea09aa26a.tar.xz mullvadvpn-e018e522c1aaf085d5933a8b8c67fd8ea09aa26a.zip | |
Setup tray animators
Diffstat (limited to 'app/lib')
| -rw-r--r-- | app/lib/tray-animator.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/lib/tray-animator.js b/app/lib/tray-animator.js index d4fd0b79c5..eb8dd02af6 100644 --- a/app/lib/tray-animator.js +++ b/app/lib/tray-animator.js @@ -182,7 +182,8 @@ export class TrayAnimator { * @memberOf TrayAnimator */ start() { - assert(this._started === false); + if(this._started) { return; }; + this._timer = this._nextFrame(); this._started = true; @@ -198,7 +199,7 @@ export class TrayAnimator { * @memberOf TrayAnimator */ stop() { - assert(this._started === true); + if(!this._started) { return; } this._started = false; |
