diff --git a/js/index.js b/js/index.js index cbab96880..7b896b782 100644 --- a/js/index.js +++ b/js/index.js @@ -218,6 +218,12 @@ function refreshLibrary() { if (versionInfo) versionInfo = " ("+versionInfo+")"; var readme = `Read more...`; var favourite = favourites.find(e => e == app.id); + + var username = "espruino"; + var githubMatch = window.location.href.match(/\/(\w+)\.github\.io/); + if(githubMatch) username = githubMatch[1]; + var url = `https://github.com/${username}/BangleApps/tree/master/apps/${app.id}`; + return `