From 2f87efe98c65d3bdebc241f471c46ae1c35cdf2a Mon Sep 17 00:00:00 2001 From: v1nc Date: Fri, 8 May 2020 00:58:21 +0200 Subject: [PATCH] fix typo --- js/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/index.js b/js/index.js index 6d478fe5f..061e18558 100644 --- a/js/index.js +++ b/js/index.js @@ -244,7 +244,7 @@ function refreshLibrary() { tab.setAttribute("data-badge", appJSON.length); //github icon onClick htmlToArray(panelbody.getElementsByClassName("link-github")).forEach(link => { - button.addEventListener("click",event => { + link.addEventListener("click",event => { var username = window.location.href; var url = "https://github.com/espruino/BangleApps/tree/master/apps/"+link.getAttribute("appid"); if(!username.startsWith("https://banglejs.com/apps")){