Skip to content

Commit

Permalink
Reset state if controller is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
alexesprit committed Jun 12, 2019
1 parent 7cf551c commit 17f26b1
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/core/background/object/controller.js
Expand Up @@ -79,14 +79,9 @@ define((require) => {
if (flag) {
this.pageAction.setSiteSupported();
} else {
this.pageAction.setSiteDisabled();
}

if (!flag && this.currentSong) {
this.playbackTimer.reset();
this.replayDetectionTimer.reset();
this.resetState();

this.clearNowPlayingNotification();
this.pageAction.setSiteDisabled();
}
}

Expand Down

0 comments on commit 17f26b1

Please sign in to comment.