File tree Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,21 @@ export default function RootLayout({
58
58
</ Script >
59
59
60
60
{ /* Other Meta Tags, Links, Etc... */ }
61
+
62
+ { /* Service Worker Registration */ }
63
+ < Script id = "sw-register" strategy = "afterInteractive" >
64
+ { `
65
+ if ('serviceWorker' in navigator) {
66
+ navigator.serviceWorker.register('/sw.js')
67
+ .then(registration => {
68
+ console.log('Service Worker registered:', registration);
69
+ })
70
+ .catch(error => {
71
+ console.error('Service Worker registration failed:', error);
72
+ });
73
+ }
74
+ ` }
75
+ </ Script >
61
76
</ head >
62
77
< body className = { `${ Raleway . className } antialiased bg-white` } >
63
78
{ /*
@@ -86,11 +101,6 @@ export default function RootLayout({
86
101
</ main >
87
102
{ /* Footer */ }
88
103
< Footer />
89
- < footer className = "bg-gray-800 text-white py-4" >
90
- < div className = "container mx-auto px-4" >
91
- < p > Footer Content</ p >
92
- </ div >
93
- </ footer >
94
104
</ LayoutTransition >
95
105
</ div >
96
106
</ body >
You can’t perform that action at this time.
0 commit comments