8 lines
238 B
TypeScript
8 lines
238 B
TypeScript
import browser from 'webextension-polyfill';
|
|
|
|
browser.webNavigation.onCompleted.addListener(
|
|
async (event: {tabId: string;}) => {
|
|
const { tabId } = event
|
|
await browser.tabs.sendMessage(tabId, {type: 'renderFeed'})
|
|
}
|
|
)
|