This commit is contained in:
ThatOneCalculator 2022-07-13 23:25:07 -07:00
parent 3b4910a713
commit 1a47586cdc

View file

@ -46,12 +46,10 @@ function volumechange() {
if (audioEl) ColdDeviceStorage.set('mediaVolume', audioEl.volume); if (audioEl) ColdDeviceStorage.set('mediaVolume', audioEl.volume);
} }
const playerInstance = ref();
onMounted(() => { onMounted(() => {
if (audioEl) { if (audioEl) {
audioEl.volume = ColdDeviceStorage.get('mediaVolume'); audioEl.volume = ColdDeviceStorage.get('mediaVolume');
playerInstance.value = new Vlitejs('#player'); new Vlitejs('#player');
} }
}); });
</script> </script>