Skip to content
This repository has been archived by the owner on Jul 31, 2022. It is now read-only.

Commit

Permalink
Fix key
Browse files Browse the repository at this point in the history
  • Loading branch information
alkaitagi committed Feb 3, 2021
1 parent 316dea1 commit 412df65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/audio-player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type Track = {
};

const state = reactive({
key: undefined as undefined | string,
key: null as null | string,
timer: 0,
seek: 0,
current: undefined as undefined | Track,
Expand Down Expand Up @@ -76,7 +76,7 @@ function seek() {

function stop() {
Howler.unload();
state.key = undefined;
state.key = null;
state.seek = 0;
clearInterval(state.timer);
state.current = undefined;
Expand Down

0 comments on commit 412df65

Please sign in to comment.