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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -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;