diff --git a/scripts/GUI/sidepanel.js b/scripts/GUI/sidepanel.js index 2d60c75..ebdd510 100644 --- a/scripts/GUI/sidepanel.js +++ b/scripts/GUI/sidepanel.js @@ -47,7 +47,13 @@ export default class Sidebar { await chrome.sidePanel.setOptions({enabled: false}); // Then, re-enable it. - await chrome.sidePanel.setOptions({enabled: true}); + chrome.sidePanel.setOptions({enabled: true}); }; }; + + // Set the options. + // @param {object} options the options + async setOptions(options) { + await chrome.sidePanel.setOptions(options); + } } \ No newline at end of file