From 90a565fbcba6d889eb1362a86965fbe646c6dc03 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 19 Aug 2019 11:33:03 -0400 Subject: [PATCH] dismiss popover --- src/popup/app.component.ts | 2 +- .../app/desktop/safari/SafariExtensionViewController.swift | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/popup/app.component.ts b/src/popup/app.component.ts index d2578f181a..2efe175723 100644 --- a/src/popup/app.component.ts +++ b/src/popup/app.component.ts @@ -129,7 +129,7 @@ export class AppComponent implements OnInit { } } else if (msg.command === 'reloadPopup') { this.ngZone.run(() => { - this.router.navigate(['/', { queryParams: { reload: true } }]); + this.router.navigate(['/']); }); } else { msg.webExtSender = sender; diff --git a/src/safari/app/desktop/safari/SafariExtensionViewController.swift b/src/safari/app/desktop/safari/SafariExtensionViewController.swift index f69a6f4468..f8a86094ad 100644 --- a/src/safari/app/desktop/safari/SafariExtensionViewController.swift +++ b/src/safari/app/desktop/safari/SafariExtensionViewController.swift @@ -139,6 +139,8 @@ class SafariExtensionViewController: SFSafariExtensionViewController, WKScriptMe } } } + } else if command == "hideWindow" { + dismissPopover() } } }