1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-10 13:23:34 +00:00

use href for reloading popover

This commit is contained in:
Kyle Spearrin
2018-01-12 21:20:49 -05:00
parent 7467c220e1
commit ede38dd07c

View File

@@ -34,7 +34,11 @@ export default class RuntimeBackground {
// Reload the popup when it's opened
this.runtime.addEventListener('popover', (event: any) => {
const win: Window = event.target.contentWindow;
const href = win.location.origin + win.location.pathname;
let href = win.location.href;
if (href.indexOf('#') > -1) {
href = href.substr(0, href.indexOf('#'));
}
if (win.location.toString() === href) {
win.location.reload();
} else {