Skip to content

Commit

Permalink
Merge pull request #31 from KDT-hahahoho/Feat/#29
Browse files Browse the repository at this point in the history
Chore: pwa 세팅 실패로 다른 방법 시도
  • Loading branch information
woojoung1217 authored Oct 18, 2024
2 parents 77a0db5 + ecc32c3 commit f3aa923
Show file tree
Hide file tree
Showing 13 changed files with 6,364 additions and 1,832 deletions.
22 changes: 4 additions & 18 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,14 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="public/icons/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" href="/favicon.ico" />
<link rel="apple-touch-icon" href="/apple-touch-icon-180x180.png" sizes="180x180" />
<link rel="mask-icon" href="/mask-icon.svg" color="#FFFFFF" />
<meta name="theme-color" content="#ffffff" />
<title>Wish-위시</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
<script>
if ('serviceWorker' in navigator) {
// Register a service worker hosted at the root of the
// site using the default scope.
navigator.serviceWorker
.register('/sw.js')
.then((registration) => {
console.log('Service worker registration succeeded:', registration);
})
.catch((err) => {
console.log('Service worker registration failed:', error);
});
} else {
console.log('Service workers are not supported.');
}
</script>
</body>
</html>
Loading

0 comments on commit f3aa923

Please sign in to comment.