mirror of
https://github.com/sagidayan/greasemonkey-scripts.git
synced 2024-11-22 09:25:26 +00:00
Minor fix
Fixed the need of reloading page for PRs to appear when navigating in the repo pages and back to the root.
This commit is contained in:
parent
97ff0d704d
commit
902bc14b96
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue