Skip to content

Commit bcf200c

Browse files
committed
Do not reload affected tabs before saving XSS user choices, if any.
1 parent 6099c18 commit bcf200c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/bg/Settings.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,14 +182,15 @@ var Settings = {
182182
if (typeof unrestrictedTab === "boolean") {
183183
await ns.toggleTabRestrictions(tabId, !unrestrictedTab);
184184
}
185+
186+
if (xssUserChoices) await XSS.saveUserChoices(xssUserChoices);
187+
185188
if (reloadAffected && tabId !== -1) {
186189
try {
187190
browser.tabs.reload(tabId);
188191
} catch (e) {}
189192
}
190193

191-
if (xssUserChoices) await XSS.saveUserChoices(xssUserChoices);
192-
193194
if (reloadOptionsUI) await this.reloadOptionsUI();
194195
},
195196

0 commit comments

Comments
 (0)