diff --git a/extensions/ChatGPT.popclipextz b/extensions/ChatGPT.popclipextz index 891455cc..b5054da0 100644 Binary files a/extensions/ChatGPT.popclipextz and b/extensions/ChatGPT.popclipextz differ diff --git a/source/ChatGPT.popclipext/chatgpt.js b/source/ChatGPT.popclipext/chatgpt.js index 58dc337e..5f3cb84a 100644 --- a/source/ChatGPT.popclipext/chatgpt.js +++ b/source/ChatGPT.popclipext/chatgpt.js @@ -46,10 +46,10 @@ const chat = async (input, options) => { } else { popclip.pasteText(getTranscript(2)); } + popclip.showSuccess(); } catch (e) { popclip.showText(getErrorInfo(e)); } - popclip.showSuccess(); return null; }; function getErrorInfo(error) { diff --git a/source/ChatGPT.popclipext/chatgpt.ts b/source/ChatGPT.popclipext/chatgpt.ts index a6b4644a..193e8047 100644 --- a/source/ChatGPT.popclipext/chatgpt.ts +++ b/source/ChatGPT.popclipext/chatgpt.ts @@ -70,10 +70,10 @@ const chat: ActionFunction = async (input, options) => { } else { popclip.pasteText(getTranscript(2)); } + popclip.showSuccess(); } catch (e) { popclip.showText(getErrorInfo(e)); } - popclip.showSuccess(); return null; };