9 lines
250 B
TypeScript
9 lines
250 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'})
|
||
|
}
|
||
|
)
|