From d79060237d6ff0b241ca5289a4bf0db42e680bc3 Mon Sep 17 00:00:00 2001 From: Nils Maier Date: Tue, 10 Sep 2019 13:58:28 +0200 Subject: [PATCH] Silence window-type errors --- lib/windowutils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/windowutils.ts b/lib/windowutils.ts index ad919a0..3237159 100644 --- a/lib/windowutils.ts +++ b/lib/windowutils.ts @@ -11,7 +11,7 @@ const MANAGER_URL = "/windows/manager.html"; export async function mostRecentBrowser(incognito: boolean): Promise { let window; try { - window = await windows.getCurrent({windowTypes: ["normal"]}); + window = await windows.getCurrent(); if (window.type !== "normal") { throw new Error("not a normal window"); } @@ -21,7 +21,7 @@ export async function mostRecentBrowser(incognito: boolean): Promise { } catch { try { - window = await windows.getlastFocused({windowTypes: ["normal"]}); + window = await windows.getlastFocused(); if (window.type !== "normal") { throw new Error("not a normal window"); }