diff --git a/chatgpt.js b/chatgpt.js index 67aa2315e..6016fa9bb 100644 --- a/chatgpt.js +++ b/chatgpt.js @@ -1162,8 +1162,8 @@ const chatgpt = { // eslint-disable-line no-redeclare open: function() { const menuBtn = document.querySelector('nav [id*="menu-button"][aria-expanded="false"]'); if (menuBtn) - try { menuBtn.click(); } catch (err) { console.error('Error while closing the menu'); throw new Error(err); } - else { console.error('Menu already hidden!'); throw new Error(); } + try { menuBtn.click(); } catch (err) { console.error('Error while opening the menu'); throw new Error(err); } + else { console.error('Menu already open!'); throw new Error(); } } },