You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
unboundedpress/portfolio-nuxt/stores/AudioPlayerStore.js

15 lines
437 B
JavaScript

import {defineStore} from "pinia";
export const useAudioPlayerStore = defineStore("AudioPlayerStore", {
state: () => ({"soundcloud_trackid": "1032587794"}),
actions: {
setSoundCloudTrackID(trackid) {
if (typeof trackid !== 'undefined') {
this.soundcloud_trackid = trackid
}
},
clearSoundCloudTrackID() {
this.soundcloud_trackid = 'undefined'
}
}
})