Something went wrong. Try again.
A music player that connects to your cloud/distributed storage. forked from tokono.ma/diffuse
Something went wrong. Try again.
12345678910111213141516171819202122232425import "./index.d"
// @ts-ignoreimport { Elm } from "brain.elm.js"
// 🚀
const flags: Record<string, string> = location .hash .substring(1) .split("&") .reduce((acc, flag) => { const [k, v] = flag.split("=") return { ...acc, [k]: v } }, {})
export const load = () => Elm.Brain.init({ flags: { initialUrl: decodeURIComponent(flags.appHref) || "" }})