v2 initial commit
This commit is contained in:
10
src/background.ts
Normal file
10
src/background.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
export {}
|
||||
|
||||
chrome.runtime.onMessage.addListener(async (message) => {
|
||||
chrome.tabs.query({ active: true, currentWindow: true }, async (tabs) => {
|
||||
const tab = tabs[0]
|
||||
await chrome.sidePanel.open({
|
||||
windowId: tab.windowId
|
||||
})
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user