2023-06-08 19:39:45 +02:00
|
|
|
import {defineStore} from "pinia";
|
|
|
|
|
|
|
|
|
|
export const useAudioPlayerStore = defineStore("AudioPlayerStore", {
|
|
|
|
|
state: () => ({"soundcloud_trackid": "1032587794"}),
|
|
|
|
|
actions: {
|
|
|
|
|
setSoundCloudTrackID(trackid) {
|
2023-06-29 02:11:34 +02:00
|
|
|
if (typeof trackid !== 'undefined') {
|
|
|
|
|
this.soundcloud_trackid = trackid
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
clearSoundCloudTrackID() {
|
|
|
|
|
this.soundcloud_trackid = 'undefined'
|
2023-06-08 19:39:45 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|