Skip to content

Commit

Permalink
Fix multi-tab usage with notify_push
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen committed Oct 6, 2022
1 parent 21b0ae2 commit 9360576
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NotificationsApp.vue
Expand Up @@ -336,7 +336,7 @@ export default {
*/
_fetchAfterNotifyPush() {
this.backgroundFetching = true
if (this.notifyPush && this.tabId !== this.lastTabId) {
if (this.hasNotifyPush && this.tabId !== this.lastTabId) {
console.debug('Deferring notification refresh from browser storage are notify_push event to give the last tab the chance to do it')
setTimeout(() => {
this._fetch()
Expand Down

0 comments on commit 9360576

Please sign in to comment.