Skip to content

Commit e41303e

Browse files
committed
deploy: a1b9776
1 parent 7f6bf19 commit e41303e

2 files changed

Lines changed: 22 additions & 6 deletions

File tree

‎sitemap.xml‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,37 +3,37 @@
33

44
<url>
55
<loc>https://javascriptmn.com/code-of-conduct/</loc>
6-
<lastmod>2020-10-26T05:08:29.551Z</lastmod>
6+
<lastmod>2020-10-26T05:42:36.161Z</lastmod>
77
<changefreq></changefreq>
88
</url>
99

1010
<url>
1111
<loc>https://javascriptmn.com/events/</loc>
12-
<lastmod>2020-10-26T05:08:29.551Z</lastmod>
12+
<lastmod>2020-10-26T05:42:36.161Z</lastmod>
1313
<changefreq></changefreq>
1414
</url>
1515

1616
<url>
1717
<loc>https://javascriptmn.com/</loc>
18-
<lastmod>2020-10-26T05:08:29.551Z</lastmod>
18+
<lastmod>2020-10-26T05:42:36.161Z</lastmod>
1919
<changefreq>daily</changefreq>
2020
</url>
2121

2222
<url>
2323
<loc>https://javascriptmn.com/speak/</loc>
24-
<lastmod>2020-10-26T05:08:29.551Z</lastmod>
24+
<lastmod>2020-10-26T05:42:36.161Z</lastmod>
2525
<changefreq></changefreq>
2626
</url>
2727

2828
<url>
2929
<loc>https://javascriptmn.com/sponsors/</loc>
30-
<lastmod>2020-10-26T05:08:29.551Z</lastmod>
30+
<lastmod>2020-10-26T05:42:36.161Z</lastmod>
3131
<changefreq></changefreq>
3232
</url>
3333

3434
<url>
3535
<loc>https://javascriptmn.com/sponsorship-opportunities/</loc>
36-
<lastmod>2020-10-26T05:08:29.551Z</lastmod>
36+
<lastmod>2020-10-26T05:42:36.161Z</lastmod>
3737
<changefreq></changefreq>
3838
</url>
3939

‎sw.js‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// cleanup old Gatsby ServiceWorkers
2+
// https://github.com/NekR/self-destroying-sw
3+
self.addEventListener('install', function (e) {
4+
self.skipWaiting();
5+
});
6+
7+
self.addEventListener('activate', function (e) {
8+
self.registration
9+
.unregister()
10+
.then(function () {
11+
return self.clients.matchAll();
12+
})
13+
.then(function (clients) {
14+
clients.forEach((client) => client.navigate(client.url));
15+
});
16+
});

0 commit comments

Comments
 (0)