need to package onEngagementLoad as you are not allowed to eval() inside of an extension
This commit is contained in:
@@ -1,11 +1,4 @@
|
||||
// Allows users to open the side panel by clicking on the action toolbar icon
|
||||
chrome.sidePanel
|
||||
.setPanelBehavior({ openPanelOnActionClick: true })
|
||||
.catch((error) => console.error(error));
|
||||
|
||||
chrome.action.onClicked.addListener(() => {
|
||||
chrome.tabs.create({
|
||||
url: 'mainpage.html'
|
||||
});
|
||||
console.log('Opened a tab with a sandboxed page!');
|
||||
});
|
||||
.catch((error) => console.error(error));
|
||||
Reference in New Issue
Block a user