From c9f0db1c34e10298b7be24c4d4ff004f9525cd2d Mon Sep 17 00:00:00 2001 From: James Feng Cao Date: Thu, 6 Apr 2023 23:26:29 +0800 Subject: [PATCH] bingAI: minor optimization --- en/searchurl/bingAI/bing.html | 1 - en/searchurl/bingAI/css/bing.css | 13 ------------- en/searchurl/bingAI/js/bing.js | 4 +++- 3 files changed, 3 insertions(+), 15 deletions(-) diff --git a/en/searchurl/bingAI/bing.html b/en/searchurl/bingAI/bing.html index 23abdf1..c8a280b 100644 --- a/en/searchurl/bingAI/bing.html +++ b/en/searchurl/bingAI/bing.html @@ -38,7 +38,6 @@ -

chat with bing

diff --git a/en/searchurl/bingAI/css/bing.css b/en/searchurl/bingAI/css/bing.css index 6f0b3ee..3aac608 100644 --- a/en/searchurl/bingAI/css/bing.css +++ b/en/searchurl/bingAI/css/bing.css @@ -211,11 +211,6 @@ body { overflow-x: hidden; } -#body-top { - height: 20vh; - width: 100%; -} - #body-bottom { height: 15rem; width: 100%; @@ -517,14 +512,6 @@ div.markdown-body { /*手机 css*/ @media screen and (orientation:portrait) and (max-device-width:800px) and (max-device-height:1000px) { - :root { - font-size: 1rem; - } - - div.markdown-body { - font-size: 1rem; - } - .InternalSearchQuery, .InternalLoaderMessage { width: 90%; diff --git a/en/searchurl/bingAI/js/bing.js b/en/searchurl/bingAI/js/bing.js index d3195d4..06ae8b1 100644 --- a/en/searchurl/bingAI/js/bing.js +++ b/en/searchurl/bingAI/js/bing.js @@ -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) {