This commit is contained in:
Felix Roos 2022-03-06 20:04:55 +01:00
parent 1dda16c010
commit 76760fc85f
5 changed files with 26 additions and 7 deletions

6
docs/dist/gist.js vendored Normal file
View file

@ -0,0 +1,6 @@
// 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));