diff --git a/src/store/actions.js b/src/store/actions.js index 1cc751c..58d0b2b 100644 --- a/src/store/actions.js +++ b/src/store/actions.js @@ -1,7 +1,7 @@ import { updateMediaSessionMetaData } from "@/utils/mediaSession"; import { getTrackDetail, scrobble, getMP3 } from "@/api/track"; import { isLoggedIn } from "@/utils/auth"; -import { updateHttps } from "@/utils/common" +import { updateHttps } from "@/utils/common"; export default { switchTrack({ state, dispatch, commit }, basicTrack) { diff --git a/src/utils/common.js b/src/utils/common.js index 6fcd59f..575e634 100644 --- a/src/utils/common.js +++ b/src/utils/common.js @@ -72,6 +72,6 @@ export function throttle(fn, time) { } export function updateHttps(url) { - if (!url) return '' + if (!url) return ""; return url.replace(/^http:/, "https:"); -} \ No newline at end of file +}