set the side panel's trigger behavior
Add the module "user_actions.js" to the GUI scripts folder. This module will handle the user's actions, such as opening the side panel.
This commit is contained in:
parent
2bd5310e40
commit
12f9562aa6
2 changed files with 9 additions and 0 deletions
7
scripts/GUI/user_actions.js
Normal file
7
scripts/GUI/user_actions.js
Normal file
|
@ -0,0 +1,7 @@
|
|||
export default class user_actions {
|
||||
static init() {
|
||||
chrome.sidePanel
|
||||
.setPanelBehavior({ openPanelOnActionClick: true })
|
||||
.catch((error) => console.error(error));
|
||||
};
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue