Skip to content

Commit

Permalink
fix(site): use service worker to fix embed headers for stackblitz
Browse files Browse the repository at this point in the history
  • Loading branch information
Vheissu committed Dec 22, 2024
1 parent cb21c04 commit 92a094b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions themes/aurelia-theme/assets/js/coi-serviceworker.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions themes/aurelia-theme/assets/js/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
console.log('This site was generated by Hugo.');

document.addEventListener('DOMContentLoaded', () => {
// Mobile menu functionality
const mobileMenuButton = document.getElementById('mobile-menu-button');
Expand Down
4 changes: 4 additions & 0 deletions themes/aurelia-theme/layouts/partials/head/js.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@
{{- end }}
{{- end }}
{{- end }}

{{- with resources.Get "js/coi-serviceworker.min.js" }}
<script src="{{ .RelPermalink }}"></script>
{{- end }}

0 comments on commit 92a094b

Please sign in to comment.