We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
chatgpt.clearChats()
KudoAI/chatgpt.js
1 parent b5c3966 commit 6f2206fCopy full SHA for 6f2206f
starters/chrome/extension/lib/chatgpt.js
@@ -398,8 +398,9 @@ const chatgpt = { // eslint-disable-line no-redeclare
398
document.querySelector('button[class*="danger"').click(); // confirm clear
399
return console.info('Chats successfully cleared.');
400
} catch (err) {
401
- console.error(err.message); console.info('Using backend API method instead.');
402
- this.clearChats('api');
+ console.error(err.message);
+ if (arguments.length == 0) {
403
+ console.info('Using backend API method instead.'); this.clearChats('api'); }
404
}
405
406
} else { // API method
0 commit comments