Merge pull request #389 from cyhhao/main

This commit is contained in:
lencx
2023-02-15 12:27:52 +08:00
committed by GitHub

View File

@@ -101,6 +101,11 @@ async function init() {
}
});
// Fix Chinese input method "Enter" on Safari
document.addEventListener("keydown", (e) => {
if(e.keyCode == 229) e.stopPropagation();
}, true)
if (window.location.host === 'chat.openai.com') {
window.__sync_prompts = async function() {
await invoke('sync_prompts', { time: Date.now() });