Deprecate getBgService (#8144)
We can't grab background pages in MV3, we need to migrate off of this.
This commit is contained in:
parent
745a0c987a
commit
c8e36b6c24
|
@ -147,6 +147,7 @@ function createLocalBgService() {
|
||||||
return localBgService;
|
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) {
|
function getBgService<T>(service: keyof MainBackground) {
|
||||||
return (): T => {
|
return (): T => {
|
||||||
return mainBackground ? (mainBackground[service] as any as T) : null;
|
return mainBackground ? (mainBackground[service] as any as T) : null;
|
||||||
|
|
Loading…
Reference in New Issue