From c8e36b6c2443fe4b1802c614f3cecdb80d584f9d Mon Sep 17 00:00:00 2001 From: Matt Gibson Date: Wed, 28 Feb 2024 17:05:03 -0500 Subject: [PATCH] Deprecate getBgService (#8144) We can't grab background pages in MV3, we need to migrate off of this. --- apps/browser/src/popup/services/services.module.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/browser/src/popup/services/services.module.ts b/apps/browser/src/popup/services/services.module.ts index 577b958184..bcaf8417c9 100644 --- a/apps/browser/src/popup/services/services.module.ts +++ b/apps/browser/src/popup/services/services.module.ts @@ -147,6 +147,7 @@ function createLocalBgService() { return localBgService; } +/** @deprecated This method needs to be removed as part of MV3 conversion. Please do not add more and actively try to remove usages */ function getBgService(service: keyof MainBackground) { return (): T => { return mainBackground ? (mainBackground[service] as any as T) : null;