Skip to content

Commit

Permalink
Update serviceworker.js.twig
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudLigny authored Oct 28, 2022
1 parent 9cc6e43 commit 01541b3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions layouts/serviceworker.js.twig
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ self.addEventListener('fetch', function(event) {
}
});
} catch (e) {
{%- if site.serviceworker.debug|default(false) or getenv('CECIL_DEBUG')|default(false) ~%}
console.log('[SW] ' + e.message);
{%- endif ~%}
return;
}
{%- if site.serviceworker.debug|default(false) or getenv('CECIL_DEBUG')|default(false) ~%}
Expand Down

0 comments on commit 01541b3

Please # to comment.