diff --git a/github_list_own_prs_in_repo.js b/github_list_own_prs_in_repo.js index 1ffe446..8379c14 100644 --- a/github_list_own_prs_in_repo.js +++ b/github_list_own_prs_in_repo.js @@ -39,8 +39,10 @@ async function getPRs() { setInterval(() => { const urlSplit = document.URL.split('/'); - if (urlSplit.length !== 5) return; // Not A base repo URL - + if (urlSplit.length !== 5) { // Not A base repo URL + currentRepo = ''; + return; + } const location = urlSplit.slice(-2).join('/') if (location !== currentRepo) { currentRepo = location;