need to package onEngagementLoad as you are not allowed to eval() inside of an extension

This commit is contained in:
2025-07-30 19:31:36 -05:00
parent ae5cd721a8
commit e709879d40
12 changed files with 161 additions and 23 deletions

View File

@@ -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));