mirror of
https://github.com/Spythere/pragotron-td2.git
synced 2026-05-03 05:28:14 +00:00
chore: options in local storage
This commit is contained in:
@@ -220,7 +220,10 @@ export default defineComponent({
|
||||
},
|
||||
|
||||
animatingStatus(val: typeof this.animatingStatus) {
|
||||
if (val == 'running') (this.$refs['audio'] as HTMLAudioElement).play();
|
||||
if (val == 'running' && this.mainStore.filters.soundsEnabled)
|
||||
(this.$refs['audio'] as HTMLAudioElement).play().catch((err) => {
|
||||
console.error('Dźwięk nie mógł zostać odtworzony:', err);
|
||||
});
|
||||
else {
|
||||
(this.$refs['audio'] as HTMLAudioElement).currentTime = 0;
|
||||
(this.$refs['audio'] as HTMLAudioElement).pause();
|
||||
|
||||
Reference in New Issue
Block a user