Skip to content

Commit

Permalink
tiny fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxMEllon committed Dec 2, 2021
1 parent d448ccb commit c4153f2
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/melon/src/assets/register.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
if ("serviceWorker" in navigator) {
navigator.serviceWorker.register("/sw.20c18a66c331ba17e029ce0818cd3fff.js");
navigator.serviceWorker.register("/sw.h6u4siOcagcPl8vd.js");
}
4 changes: 2 additions & 2 deletions packages/melon/src/assets/sw.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const CACHE_NAME = "@kajitsu/melon@1.0.0";
const CACHE_NAME = "@kajitsu/melon@1.1.1";

const urlsToCache = ["/", "/blog", "/blog/20201221", "/main.css", "/markdown.css"];
const urlsToCache = ["/", "/blog/20201221", "/main.css", "/markdown.css"];

self.addEventListener("install", (event) => {
event.waitUntil(
Expand Down
2 changes: 1 addition & 1 deletion packages/melon/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ suica.get("/main.css", async (_ctx, _req, res) => {
res.end();
});

suica.get("/sw.20c18a66c331ba17e029ce0818cd3fff.js", async (_ctx, _req, res) => {
suica.get("/sw.h6u4siOcagcPl8vd.js", async (_ctx, _req, res) => {
const sw = await readAssets("sw.js");
res.setHeader("Content-Type", "application/javascript");
res.setHeader("Cache-Control", "public, immutable, max-age=2592000");
Expand Down
1 change: 1 addition & 0 deletions packages/melon/src/pages/blog/articles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export const articles: Articles = {
<meta property="og:url" content="https://me1on.dev/blog/20211204" />
<meta property="og:title" content="tc39/proposal-pipeline-operator の過去と現状" />
<meta property="og:site_name" content="maxmellon's blog" />
<meta property="og:image" content="https://me1on.dev/images/ogp-pipeline-operator.png" />
<meta name="twitter:card" content="summary" />
</>
);
Expand Down

0 comments on commit c4153f2

Please sign in to comment.