Fix: Gitroll scanned bugs
This commit is contained in:
@@ -26,9 +26,11 @@ const NEED_UPDATE = [
|
||||
|
||||
let limit_cache_size = (name, size) => {
|
||||
caches.open(name).then(cache => {
|
||||
cache.keys().then(key => {
|
||||
if (key.length > size) {
|
||||
cache.delete(key[0]).then(limit_cache_size(name, size));
|
||||
cache.keys().then(keys => {
|
||||
if (keys.length > size) {
|
||||
cache.delete(keys[0]).then(() => {
|
||||
limit_cache_size(name, size)
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
@@ -13,7 +13,7 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="container" id="imageContainer">
|
||||
<h1>Today's quote</h1>
|
||||
<div class="quote-container">
|
||||
<p id="quote"></p>
|
||||
|
||||
Reference in New Issue
Block a user