Skip to content

Commit a22b315

Browse files
committed
chore(ServiceWorker): set path with ./
@link angular/angular-cli#8515 (comment)
1 parent 67305ba commit a22b315

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

src/app/app.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<h1>
44
Welcome to {{ title }}!
55
</h1>
6-
<img width="400" alt="512 Tasks Logo" src="./assets/logo-512-tasks.png">
6+
<img width="400" alt="512 Tasks Logo" src="./assets/logo-512-tasks-compressed.png">
77
</div>
88
<h2>Docs here: </h2>
99
<ul>

src/app/app.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { environment } from '../environments/environment';
1515
imports: [
1616
BrowserModule,
1717
AppRoutingModule,
18-
ServiceWorkerModule.register('/512tasks/ngsw-worker.js', { enabled: environment.production })
18+
ServiceWorkerModule.register('./ngsw-worker.js', { enabled: environment.production })
1919
],
2020
providers: [],
2121
bootstrap: [AppComponent]
20.1 KB
Loading

0 commit comments

Comments
 (0)