diff --git a/js/exlcode.js b/js/exlcode.js index 20972e2..d15d688 100644 --- a/js/exlcode.js +++ b/js/exlcode.js @@ -8,7 +8,7 @@ function trackEvent(action) { } } -var desktopBtn = $('Edit with EXLcode'); +var desktopBtn = $('Edit with EXLcode'); function getDesktopRepoPageType() { if (!$(".repository-content").length) { @@ -27,7 +27,7 @@ function getDesktopRepoPageType() { } function isDesktopRepoPage() { - return getDesktopRepoPageType() != "" + return getDesktopRepoPageType() != "" && !document.getElementById('exlcode-btn') } function exlcodeOpenUrl() {