diff --git a/src/App.vue b/src/App.vue index b791523..2c2c3fe 100644 --- a/src/App.vue +++ b/src/App.vue @@ -9,12 +9,12 @@ diff --git a/src/store/player.js b/src/store/player.js index f13ba79..1bad73d 100644 --- a/src/store/player.js +++ b/src/store/player.js @@ -28,12 +28,6 @@ export const usePlayer = defineStore('player', { audio.onseeked = () => (this.currentTime = audio.currentTime) audio.ontimeupdate = () => (this.currentTime = audio.currentTime) audio.onvolumechange = () => (this.volume = audio.volume) - - setInterval(() => { - if (this.paused === false) { - this.time() - } - }, 40000) }, load: async (episode, podcastUrl) => { this.episode = episode diff --git a/src/utils/toast.js b/src/utils/toast.js index 75cac07..6bd8e63 100644 --- a/src/utils/toast.js +++ b/src/utils/toast.js @@ -4,9 +4,9 @@ export const showMessage = (text, backgroundColor) => toastify({ text, backgroundColor, - }) + }).showToast() -export const showError = (text) => showMessage(text, '--color-error') -export const showWarning = (text) => showMessage(text, '--color-warning') -export const showInfo = (text) => showMessage(text, '--color-primary') -export const showSuccess = (text) => showMessage(text, '--color-success') +export const showError = (text) => showMessage(text, 'var(--color-error)') +export const showWarning = (text) => showMessage(text, 'var(--color-warning)') +export const showInfo = (text) => showMessage(text, 'var(--color-primary)') +export const showSuccess = (text) => showMessage(text, 'var(--color-success)') diff --git a/src/views/Discover.vue b/src/views/Discover.vue index 9c3eb39..a569afb 100644 --- a/src/views/Discover.vue +++ b/src/views/Discover.vue @@ -1,7 +1,9 @@