diff --git a/core/js/index.js b/core/js/index.js index 11d138b00..1e86518ae 100644 --- a/core/js/index.js +++ b/core/js/index.js @@ -256,7 +256,7 @@ function refreshLibrary() { let readme = `Read more...`; let favourite = favourites.find(e => e == app.id); - let url = `${APP_SOURCECODE_URL}/${app.id}`; + let githubURL = `${APP_SOURCECODE_URL}/${app.id}`; let appurl = window.location.origin + window.location.pathname + "#" + encodeURIComponent(app.id); return `
@@ -266,7 +266,7 @@ function refreshLibrary() {

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

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

- See the code on GitHub + See the code on GitHub
@@ -499,10 +499,7 @@ function refreshMyApps() { panelbody.innerHTML = appsInstalled.map(appInstalled => { let app = appNameToApp(appInstalled.id); let version = getVersionInfo(app, appInstalled); - let username = "espruino"; - let githubMatch = window.location.href.match(/\/(\w+)\.github\.io/); - if(githubMatch) username = githubMatch[1]; - let url = `https://github.com/${username}/BangleApps/tree/master/apps/${app.id}`; + let githubURL = `${APP_SOURCECODE_URL}/${app.id}`; return `
${escapeHtml(app.name)}
@@ -510,7 +507,7 @@ function refreshMyApps() {

${escapeHtml(app.name)} (${version.text})

${getAppDescription(app)}

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