diff --git a/scripts/GUI/user_actions.js b/scripts/GUI/user_actions.js new file mode 100644 index 0000000..63f9e59 --- /dev/null +++ b/scripts/GUI/user_actions.js @@ -0,0 +1,7 @@ +export default class user_actions { + static init() { + chrome.sidePanel + .setPanelBehavior({ openPanelOnActionClick: true }) + .catch((error) => console.error(error)); + }; +}; \ No newline at end of file diff --git a/scripts/shopAI.js b/scripts/shopAI.js index 63f4dc4..3e15a09 100644 --- a/scripts/shopAI.js +++ b/scripts/shopAI.js @@ -3,5 +3,7 @@ Shop wisely with AI! */ import fc from './fc.js'; +import user_actions from "./GUI/user_actions.js"; fc.run(); +user_actions.init(); \ No newline at end of file