diff --git a/js/index.js b/js/index.js index fdefa22d5..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 `
${escapeHtml(app.name)}

@@ -225,7 +231,7 @@ function refreshLibrary() {

${escapeHtml(app.name)} ${versionInfo}

${escapeHtml(app.description)}${app.readme?`
${readme}`:""}

- See the code on GitHub + See the code on GitHub