webamp/js/config.js
Jordan Eldredge c42b33dff7 Move default audio out of Winamp class
This allows ID3 tags to work on config based audio files.
2018-03-02 13:47:56 -08:00

20 lines
598 B
JavaScript

import skin from "../skins/base-2.91.wsz";
/* global SENTRY_DSN */
const { hash } = window.location;
let config = {};
if (hash) {
try {
config = JSON.parse(decodeURIComponent(hash).slice(1));
} catch (e) {
console.error("Failed to decode config from hash: ", hash);
}
}
// Turn on the incomplete playlist window
export const skinUrl = config.skinUrl === undefined ? skin : config.skinUrl;
export const audioUrl = config.audioUrl;
export const hideAbout = config.hideAbout || false;
export const initialState = config.initialState || undefined;
export const sentryDsn = SENTRY_DSN;