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()
1 parent 5117638 commit b5c3966Copy full SHA for b5c3966
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