bingAI: minor optimization

This commit is contained in:
James Feng Cao 2023-04-06 23:26:29 +08:00
parent 3672627e81
commit c9f0db1c34
3 changed files with 3 additions and 15 deletions

View file

@ -49,8 +49,10 @@ function onMessage(json, returnMessage) {
onMessageIsOKClose = true;
returnMessage.getCatWebSocket().close(1000, 'ok');
} else {
talk = undefined;
localStorage.removeItem('LastChatJson');
createChat(thisChatType).then((r) => {
if(r.ok) talk = r.obj;
});
if (json.type == 1) {
porserArguments(json.arguments);
} else if (json.type == 2) {