RA-#8 Fix deleteCache
This commit is contained in:
@@ -914,6 +914,7 @@ var mobileConsole = (function () {
|
||||
while (i--) {
|
||||
thisLine = lines[i].trim();
|
||||
lineAndColumn = thisLine.match(/(?::)(\d+)(?::)(\d+)/);
|
||||
if (lineAndColumn === null) continue;
|
||||
url = urlFromString(thisLine).replace(lineAndColumn[0], '').split('#')[0] || '';
|
||||
caller = htmlToString(thisLine.replace(urlFromString(thisLine), '').replace(separator, '').replace('at ', '').trim());
|
||||
if (caller === '' || caller === lineAndColumn[0]) { continue; }
|
||||
|
||||
@@ -238,7 +238,8 @@ function deleteCache() {
|
||||
return caches.delete(key);
|
||||
}));
|
||||
});
|
||||
toastInfo('The serviceWorker and the cache were deleted. A new serviceWorker will be generated on the next refresh.');
|
||||
toastInfo('Der serviceWorker und alle Caches wurden gelöscht. Die Seite lädt in wenigen Sekunden neu und erstellt damit neue Caches.', 10000);
|
||||
setTimeout(function(){ location.reload(); }, 3000);
|
||||
}
|
||||
|
||||
var pushesPossible = false;
|
||||
|
||||
Reference in New Issue
Block a user