()
| 266 | } |
| 267 | |
| 268 | private static getMessengerAdapter(): ExtensionAdapter { |
| 269 | return { |
| 270 | collect: async () => { |
| 271 | return await Extension.collectData(); |
| 272 | }, |
| 273 | collectDevToolsData: async () => { |
| 274 | return await Extension.collectDevToolsData(); |
| 275 | }, |
| 276 | changeSettings: Extension.changeSettings, |
| 277 | setTheme: Extension.setTheme, |
| 278 | toggleActiveTab: Extension.toggleActiveTab, |
| 279 | markNewsAsRead: Newsmaker.markAsRead, |
| 280 | markNewsAsDisplayed: Newsmaker.markAsDisplayed, |
| 281 | loadConfig: ConfigManager.load, |
| 282 | applyDevFixes: DevTools.applyFixes, |
| 283 | resetDevFixes: DevTools.resetFixes, |
| 284 | startActivation: Extension.startActivation, |
| 285 | resetActivation: Extension.resetActivation, |
| 286 | hideHighlights: UIHighlights.hideHighlights, |
| 287 | }; |
| 288 | } |
| 289 | |
| 290 | private static onCommandInternal = async (command: Command, tabId: number | null, frameId: number | null, frameURL: string | null) => { |
| 291 | if (Extension.startBarrier!.isPending()) { |
no test coverage detected