-
Notifications
You must be signed in to change notification settings - Fork 351
Running from gist
Nako Sung edited this page Dec 3, 2015
·
2 revisions
This snippet demonstrates 'downloadable program'.
const url = "https://gist.githubusercontent.com/nakosung/815d203d8f44e7f4a9ca/raw/"
let req = new JavascriptHttpRequest()
req.SetVerb("GET")
req.SetURL(url)
req.OnComplete.Add((success) => {
if (success) {
eval(req.GetContentAsString())
} else {
console.error(req.GetResponseCode())
}
})
req.ProcessRequest()
To invalidate cache everytime,
const url = `https://gist.githubusercontent.com/nakosung/815d203d8f44e7f4a9ca/raw?random=${Math.random}`