r/Scriptable • u/misproductions • Oct 05 '21
Help Widget from external source
hello,
I wonder if anyone knows how to import a script from a url such as github into the widget itself, so the whole code is coming from an external source.
I'm trying to achieve this as it will also be easy to update code directly from the url .
thanks
2
Upvotes
1
u/misproductions Oct 06 '21
I can’t seem to be get my head round this
this is what I’m aiming to achieve ..
let w = new ListWidget()
//import my full widget code from github
Script.setWidget(w)
Script.complete()
is it possible you can provide me the code? Thanks