fix(desktop): fix cannot flashframe problem

pull/146/head
moonrailgun 2 years ago
parent 464fd7c9f8
commit 7cdbe45954

@ -1,6 +1,6 @@
{ {
"name": "tailchat-desktop", "name": "tailchat-desktop",
"version": "0.0.4", "version": "0.0.5",
"description": "A foundation for scalable desktop apps", "description": "A foundation for scalable desktop apps",
"license": "MIT", "license": "MIT",
"author": { "author": {

@ -22,7 +22,7 @@ export function handleTailchatMessage(
} }
if (type === 'receiveUnmutedMessage') { if (type === 'receiveUnmutedMessage') {
if (!win.isFocused) { if (!win.isFocused()) {
win.flashFrame(true); win.flashFrame(true);
} }
return; return;

Loading…
Cancel
Save