Просмотр исходного кода

Fixed bug in cache clearing cycle of Music module

tobychui 2 лет назад
Родитель
Сommit
3c9b00495d
1 измененных файлов с 8 добавлено и 2 удалено
  1. 8 2
      web/Music/index.html

+ 8 - 2
web/Music/index.html

@@ -404,6 +404,10 @@
 		};
 		cacheDbConn.onsuccess = function(event) {
 			cacheDb = event.target.result
+
+			//Database connection established.
+			//Clear old cache in the system if any
+			clearExpiredCache();
 		}
 	}
 
@@ -2334,7 +2338,9 @@
 			//Delete those cache that have expired
 			expiredFilenames.forEach(function(filenameToBeDeleted){
 				removeCacheByFilename(filenameToBeDeleted);
-			})l
+			});
+
+			console.log("[AirMusic] Cache clearning cycle completed")
 		});
 	}
 
@@ -2763,7 +2769,7 @@
     window.addEventListener('popstate', handleBackButton);
     window.history.pushState({}, '');
 
-	//Clear expired cache
+	
 	
 </script>
 </body>