forked from FoundKeyGang/FoundKey
cleanup audioEl and volumechange
This commit is contained in:
parent
2da92eb075
commit
3152630f27
1 changed files with 0 additions and 10 deletions
|
@ -31,16 +31,6 @@ defineProps<{
|
||||||
media: foundkey.entities.DriveFile;
|
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>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|
Loading…
Reference in a new issue