init
This commit is contained in:
7
extension/background.js
Normal file
7
extension/background.js
Normal file
@@ -0,0 +1,7 @@
|
||||
// Open the side panel when the extension icon is clicked
|
||||
chrome.action.onClicked.addListener((tab) => {
|
||||
chrome.sidePanel.open({ tabId: tab.id });
|
||||
});
|
||||
|
||||
// Set the side panel as open by default for all pages
|
||||
chrome.sidePanel.setOptions({ enabled: true });
|
||||
Reference in New Issue
Block a user