From 594fcf767d6d467e09df5920b87fa9b63893c526 Mon Sep 17 00:00:00 2001 From: James Feng Cao Date: Wed, 24 May 2023 21:45:46 +0800 Subject: [PATCH] simplify bing.js --- en/searchurl/bingAI/js/bing.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/en/searchurl/bingAI/js/bing.js b/en/searchurl/bingAI/js/bing.js index 52b81f8..4acb69d 100644 --- a/en/searchurl/bingAI/js/bing.js +++ b/en/searchurl/bingAI/js/bing.js @@ -88,10 +88,6 @@ function reSetStartChatMessage(type) { if(r.ok) talk = r.obj; }); getChatHubWithMagic().then(async a => { - let t = 0; - if (a == 'repeat') { - t = await getLastChatInvocationId(); - } chat.innerHTML = `
@@ -103,11 +99,6 @@ function reSetStartChatMessage(type) {
`; - if(t>1){ - restartNewChat.classList.remove('onShow'); - }else{ - restartNewChat.classList.add('onShow'); - } }); }