|
@@ -1317,13 +1317,14 @@
|
|
|
if (enableAutoRefresh == false){
|
|
|
return;
|
|
|
}
|
|
|
+ let currentPagePath = currentPath;
|
|
|
getDirHash(function(hash){
|
|
|
if (hash.error !== undefined){
|
|
|
//Something went wrong. Ignore this request
|
|
|
console.log(hash.error)
|
|
|
}else{
|
|
|
- //Check if the hash match with the last hash.
|
|
|
- if (hash != currentPathHash){
|
|
|
+ //Check if the hash match with the last hash && user is still on the same page
|
|
|
+ if (hash != currentPathHash && currentPagePath == currentPath){
|
|
|
//console.log(currentPathHash, hash);
|
|
|
refreshList();
|
|
|
currentPathHash = hash;
|