Skip to content

Commit 0f62fbe

Browse files
committed
fix: hide shield on error
1 parent 530304b commit 0f62fbe

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/scripts/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ var result = document.querySelector('body > main > section#result');
88
let sections = Array.from(document.querySelectorAll('main > section'));
99

1010

11+
document.querySelector('footer > header > a > img').onerror = e => {
12+
13+
e.target.parentNode.remove();
14+
15+
}
16+
17+
1118
function scrollIntoView(section) {
1219

1320
return new Promise((resolve, reject) => {

src/sw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const CACHE_NAME = 'v1.1.0';
1+
const CACHE_NAME = 'v1.1.1';
22

33
const FILES_TO_CACHE = [
44
'./images/apple-touch-icon-192x192.webp',

0 commit comments

Comments
 (0)