Skip to content

Commit

Permalink
chore(develop): sw 파일 이동
Browse files Browse the repository at this point in the history
  • Loading branch information
Doyu-Lee committed Jan 6, 2024
1 parent a8dcc4e commit 197f002
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
File renamed without changes.
28 changes: 14 additions & 14 deletions registerServiceWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@ export function SW() {

if (process.env.NODE_ENV === "production") {
// 메시지 수신 서비스 워커
register("/firebase-messaging-sw.js", {
ready() {},
registered() {},
cached() {},
updatefound() {},
updated() {},
offline() {},
error(error) {
console.error(
"Error during service worker registration:",
error,
);
},
});
// register("/firebase-messaging-sw.js", {
// ready() {},
// registered() {},
// cached() {},
// updatefound() {},
// updated() {},
// offline() {},
// error(error) {
// console.error(
// "Error during service worker registration:",
// error,
// );
// },
// });

// console.log(navigator);
register(`/service-worker.js`, {
Expand Down

0 comments on commit 197f002

Please sign in to comment.