This commit is contained in:
geoffrey45 2022-08-07 00:04:50 +03:00
parent ffcc0070a0
commit 24ef21e6ba

View File

@ -121,8 +121,7 @@ export default defineStore("Queue", {
},
seek(pos: number) {
try {
const a = (pos / 100) * this.audio.duration;
this.audio.currentTime = a;
this.audio.currentTime = pos;
} catch (error) {
if (error instanceof TypeError) {
console.error("Seek error: no audio");