From 3152630f274862d2980e15dfc505b78854413a98 Mon Sep 17 00:00:00 2001 From: Puniko Date: Sun, 19 Feb 2023 15:03:40 +0100 Subject: [PATCH] cleanup audioEl and volumechange --- packages/client/src/components/media-banner.vue | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/packages/client/src/components/media-banner.vue b/packages/client/src/components/media-banner.vue index ed4f70189..c493d6bad 100644 --- a/packages/client/src/components/media-banner.vue +++ b/packages/client/src/components/media-banner.vue @@ -31,16 +31,6 @@ defineProps<{ media: foundkey.entities.DriveFile; }>(); -const audioEl = $ref(); -let hide = $ref(true); - -function volumechange(): void { - if (audioEl) ColdDeviceStorage.set('mediaVolume', audioEl.volume); -} - -onMounted(() => { - if (audioEl) audioEl.volume = ColdDeviceStorage.get('mediaVolume'); -});