Skip to content

Commit 7fe0e1c

Browse files
committed
remove prop instead
1 parent c9e75a0 commit 7fe0e1c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/Hyperchat.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,8 @@
739739
const iframe = window.parent.document.querySelector('.ytcf-iframe') as HTMLDivElement;
740740
if (!iframe || (topBarVisible && iframe.style.display != 'block')) return;
741741
// elem.style.display = topBarVisible ? 'none' : 'flex';
742-
elem.style.setProperty('display', topBarVisible ? 'none' : 'flex', 'important');
742+
if (topBarVisible) elem.style.setProperty('display', 'none', 'important');
743+
else elem.style.removeProperty('display');
743744
topBarVisible = !topBarVisible;
744745
};
745746
</script>

0 commit comments

Comments
 (0)