From 0be6dd68db369ba2952d6cf9ee68628abc8da5ad Mon Sep 17 00:00:00 2001 From: Thomas Beverley Date: Fri, 25 Oct 2024 09:24:51 +0100 Subject: [PATCH] Open the install helper in a tab rather than window --- src/extension/background/APIHandler/APIHandler.ts | 1 + src/extension/background/NativeInstallHelper.ts | 7 +------ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/extension/background/APIHandler/APIHandler.ts b/src/extension/background/APIHandler/APIHandler.ts index 380c9bc..257c965 100644 --- a/src/extension/background/APIHandler/APIHandler.ts +++ b/src/extension/background/APIHandler/APIHandler.ts @@ -55,6 +55,7 @@ class APIHandler { #handleGetCapabilities = async () => { return { + extension: true, helper: (await System.isNativeInstalled()) === NativeInstalledResult.Responded } as AICapabilities } diff --git a/src/extension/background/NativeInstallHelper.ts b/src/extension/background/NativeInstallHelper.ts index 306295c..e742d85 100644 --- a/src/extension/background/NativeInstallHelper.ts +++ b/src/extension/background/NativeInstallHelper.ts @@ -43,12 +43,7 @@ class NativeInstallHelperImpl { const url = new URL(Config.extension.installHelperUrl) url.searchParams.set('reason', reason) - chrome.windows.create({ - url: url.toString(), - type: 'popup', - width: 400, - height: 600 - }) + chrome.tabs.create({ url: url.toString() }) } }