We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f1ad70 commit 8aab3a7Copy full SHA for 8aab3a7
src/lib/Account.ts
@@ -382,7 +382,7 @@ export default class Account {
382
383
async cancelSync():Promise<void> {
384
if (!this.syncing) return
385
- if (self.constructor.name !== 'ServiceWorkerGlobalScope') {
+ if (self.constructor.name !== 'ServiceWorkerGlobalScope' && window.location.toString().includes('background.html')) {
386
// If we're running in a static background page
387
// reload
388
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
0 commit comments