cleanup audioEl and volumechange

This commit is contained in:
Puniko 2023-02-19 15:03:40 +01:00
parent 2da92eb075
commit 3152630f27

View file

@ -31,16 +31,6 @@ defineProps<{
media: foundkey.entities.DriveFile;
}>();
const audioEl = $ref<HTMLAudioElement | null>();
let hide = $ref(true);
function volumechange(): void {
if (audioEl) ColdDeviceStorage.set('mediaVolume', audioEl.volume);
}
onMounted(() => {
if (audioEl) audioEl.volume = ColdDeviceStorage.get('mediaVolume');
});
</script>
<style lang="scss" scoped>