Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix multi-tab usage with notify_push #1301

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions js/notifications-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/notifications-main.js.map

Large diffs are not rendered by default.

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