A music player that connects to your cloud/distributed storage.
at main 386 B view raw
1import "./index.d" 2 3// @ts-ignore 4import { Elm } from "brain.elm.js" 5 6 7// 🚀 8 9 10const flags: Record<string, string> = location 11 .hash 12 .substring(1) 13 .split("&") 14 .reduce((acc, flag) => { 15 const [k, v] = flag.split("=") 16 return { ...acc, [k]: v } 17 }, {}) 18 19 20export const load = () => Elm.Brain.init({ 21 flags: { 22 initialUrl: decodeURIComponent(flags.appHref) || "" 23 } 24})