Derive name from passed preset URL

This commit is contained in:
Jordan Eldredge 2019-03-08 19:03:52 -08:00
parent 3d0278688d
commit 73f5f90e45

View file

@ -160,8 +160,10 @@ Raven.context(async () => {
const initialPresets = [];
if (butterchurnPresetUrlParam) {
initialPresets.push({
// TODO: Get name
name: "foo",
name: butterchurnPresetUrlParam.slice(
0,
butterchurnPresetUrlParam.length - ".json".length
),
butterchurnPresetUrl: butterchurnPresetUrlParam
});
} else if (milkdropPresetUrl) {