Skip to content

Commit

Permalink
Merge branch 'main' into feat-astro-sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
5ouma authored Nov 16, 2024
2 parents 48fa7ce + a29e6ca commit f41b5fb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
8 changes: 1 addition & 7 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,5 @@ const { title, description, icon } = Astro.props;

<script>
import { registerSW } from "virtual:pwa-register";
if ("serviceWorker" in navigator) {
const updateSW = registerSW({
onNeedRefresh() {
updateSW(true);
},
});
}
if ("serviceWorker" in navigator) registerSW({ immediate: true });
</script>
5 changes: 5 additions & 0 deletions src/types/services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ export const services = {
icon: "simple-icons:readdotcv",
color: "#111111",
},
Threads: {
url: "threads.net",
icon: "mingcute:threads-line",
color: "#000000",
},
Twitter: {
url: "twitter.com",
icon: "mingcute:twitter-line",
Expand Down

0 comments on commit f41b5fb

Please sign in to comment.