Skip to content

Commit dd034e9

Browse files
committed
Rerun when github changes view (Removes our tree)
1 parent bdbaa78 commit dd034e9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/app.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ $(window).scroll(() => {
1414
function start() {
1515
var oldLocation;
1616
setInterval(() => {
17-
if(location.origin + location.pathname != oldLocation) {
17+
if(!$('.gct-folder-name').length) {
1818
oldLocation = location.origin + location.pathname;
1919

2020
urlPullRegex = /(http|https):\/\/(www\.)?github\.com\/[-a-zA-Z0-9]*\/[-a-zA-Z0-9]*\/pull\/[0-9]*\/(files|commits)/;
@@ -31,7 +31,6 @@ function start() {
3131

3232
function initialSetup() {
3333
if ($('.js-diff-progressive-spinner').length || !$('#files').length) {
34-
setTimeout(initialSetup, 100);
3534
return;
3635
}
3736

0 commit comments

Comments
 (0)