1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 16:23:44 +00:00

window reload if there is a sidebar, resolves #900

This commit is contained in:
Kyle Spearrin
2019-04-04 11:50:49 -04:00
parent 109d800a36
commit 8cc268cd6c
4 changed files with 15 additions and 8 deletions

View File

@@ -179,7 +179,9 @@ export default class MainBackground {
this.storageService, this.appIdService);
this.systemService = new SystemService(this.storageService, this.lockService,
this.messagingService, this.platformUtilsService, () => {
BrowserApi.reloadExtension(window, false);
const forceWindowReload = this.platformUtilsService.isSafari() ||
this.platformUtilsService.isFirefox() || this.platformUtilsService.isOpera();
BrowserApi.reloadExtension(forceWindowReload ? window : null);
return Promise.resolve();
});