fix: call mode not working in landing page

This commit is contained in:
Timothy J. Baek 2024-10-06 21:42:47 -07:00
parent 86f822fd9a
commit 6f9080dfe0

View File

@ -83,7 +83,7 @@
document.removeEventListener('mouseup', onMouseUp); document.removeEventListener('mouseup', onMouseUp);
}); });
$: if (!chatId) { const closeHandler = () => {
showControls.set(false); showControls.set(false);
showOverview.set(false); showOverview.set(false);
showArtifacts.set(false); showArtifacts.set(false);
@ -91,6 +91,10 @@
if ($showCallOverlay) { if ($showCallOverlay) {
showCallOverlay.set(false); showCallOverlay.set(false);
} }
};
$: if (!chatId) {
closeHandler();
} }
</script> </script>