Skip to content

Commit

Permalink
fix: notification icon
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudLigny committed Apr 3, 2023
1 parent 297eaf4 commit 7baeaa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/serviceworker.js.twig
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ self.addEventListener('activate', function(event) {
console.log('[SW] Notification enabled');
const title = "{{ site.serviceworker.notification.message|default('Website updated.') }}";
const options = {
icon: '{{ site.manifest.icons|first.src }}'
icon: '{{ asset(site.manifest.icons|first) }}'
};
self.registration.showNotification(title, options);
self.addEventListener('notificationclick', function (event) {
Expand Down

0 comments on commit 7baeaa2

Please # to comment.