Prettier fixes into video management

This commit is contained in:
Nolway 2022-01-31 11:50:07 +01:00
parent d2bfa75b37
commit feeb20fb5d
2 changed files with 8 additions and 3 deletions

View file

@ -50,7 +50,12 @@
});
</script>
<div class="video-container" class:no-clikable={!clickable} bind:this={videoContainer} on:click={() => (clickable ? highlightedEmbedScreen.toggleHighlight(embedScreen) : null)}>
<div
class="video-container"
class:no-clikable={!clickable}
bind:this={videoContainer}
on:click={() => (clickable ? highlightedEmbedScreen.toggleHighlight(embedScreen) : null)}
>
{#if $statusStore === "connecting"}
<div class="connecting-spinner" />
{/if}

View file

@ -26,9 +26,9 @@ function createStreamableCollectionStore(): Readable<Map<string, Streamable>> {
addPeer($screenSharingLocalMedia);
}
const $highlightedEmbedScreen = get(highlightedEmbedScreen);
const $highlightedEmbedScreen = get(highlightedEmbedScreen);
if ($highlightedEmbedScreen?.type === 'streamable' && !peers.has($highlightedEmbedScreen.embed.uniqueId)) {
if ($highlightedEmbedScreen?.type === "streamable" && !peers.has($highlightedEmbedScreen.embed.uniqueId)) {
highlightedEmbedScreen.removeHighlight();
}