1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 15:53:27 +00:00

Deprecate getBgService (#8144)

We can't grab background pages in MV3, we need to migrate off of this.
This commit is contained in:
Matt Gibson
2024-02-28 17:05:03 -05:00
committed by GitHub
parent 745a0c987a
commit c8e36b6c24

View File

@@ -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<T>(service: keyof MainBackground) {
return (): T => {
return mainBackground ? (mainBackground[service] as any as T) : null;