mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-11 21:58:31 +00:00
7 lines
328 B
JavaScript
7 lines
328 B
JavaScript
// this is a shortcut to eval code from a gist
|
|
// why? to be able to shorten strudel code + e.g. be able to change instruments after links have been generated
|
|
export default (route) =>
|
|
fetch(`https://gist.githubusercontent.com/${route}?cachebust=${Date.now()}`)
|
|
.then((res) => res.text())
|
|
.then((code) => eval(code));
|