mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-21 09:09:01 +00:00
33 lines
968 B
JavaScript
33 lines
968 B
JavaScript
import llamaAudio from "../mp3/llama-2.91.mp3";
|
|
|
|
/* 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);
|
|
}
|
|
}
|
|
|
|
// Backwards compatibility with the old syntax
|
|
if (config.audioUrl && !config.initialTracks) {
|
|
config.initialTracks = [{ url: config.audioUrl }];
|
|
}
|
|
|
|
export const skinUrl = config.skinUrl === undefined ? null : config.skinUrl;
|
|
export const initialTracks = config.initialTracks || [
|
|
{
|
|
metaData: { artist: "DJ Mike Llama", title: "Llama Whippin' Intro" },
|
|
url: llamaAudio,
|
|
duration: 5.322286
|
|
}
|
|
];
|
|
|
|
export const hideAbout = config.hideAbout || false;
|
|
export const disableMarquee = config.disableMarquee || false;
|
|
export const initialState = config.initialState || undefined;
|
|
export const milkdrop = config.milkdrop || false;
|
|
export const sentryDsn = SENTRY_DSN;
|