Skip to content

Commit

Permalink
Merge pull request #265 from praschke/optionsUpdated-background-init
Browse files Browse the repository at this point in the history
fix: page and popup state is destroyed on background wakeup
  • Loading branch information
djahandarie authored Oct 1, 2023
2 parents 8430fce + a0c35c5 commit feeeb83
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ext/js/yomichan.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,9 @@ class Yomichan extends EventDispatcher {
}

_onMessageOptionsUpdated({source}) {
this.trigger('optionsUpdated', {source});
if (source !== 'background') {
this.trigger('optionsUpdated', {source});
}
}

_onMessageDatabaseUpdated({type, cause}) {
Expand Down

0 comments on commit feeeb83

Please sign in to comment.