Skip to content

Commit fc6f4e5

Browse files
author
pure-js
committed
fix path
1 parent 0145c72 commit fc6f4e5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ReactDOM.render(<App />, document.getElementById('root'));
88
// registerServiceWorker();
99
if ('serviceWorker' in navigator) {
1010
window.addEventListener('load', () => {
11-
navigator.serviceWorker.register('/sw.js').then((registration) => {
11+
navigator.serviceWorker.register('sw.js').then((registration) => {
1212
console.log('SW registered: ', registration);
1313
}).catch((registrationError) => {
1414
console.log('SW registration failed: ', registrationError);

0 commit comments

Comments
 (0)