Skip to content

Commit

Permalink
Changed menu hidden/open alerts in chatgpt.menu methods to more app…
Browse files Browse the repository at this point in the history
…ropriate `console.info` alerts
  • Loading branch information
adamlui authored May 11, 2024
1 parent ed89907 commit a291e0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chatgpt.js
Original file line number Diff line number Diff line change
Expand Up @@ -1155,13 +1155,13 @@ const chatgpt = { // eslint-disable-line no-redeclare
close: function() {
const menuBtn = document.querySelector('nav [id*="menu-button"][aria-expanded="true"]');
if (menuBtn) try { menuBtn.click(); } catch (err) { return console.error(err.message); }
else { console.error('Menu already hidden!'); }
else { console.info('Menu already hidden!'); }
},

open: function() {
const menuBtn = document.querySelector('nav [id*="menu-button"][aria-expanded="false"]');
if (menuBtn) try { menuBtn.click(); } catch (err) { return console.error(err.message); }
else { console.error('Menu already open!'); }
else { console.info('Menu already open!'); }
}
},

Expand Down

0 comments on commit a291e0d

Please sign in to comment.