mirror of
https://github.com/sigmasternchen/mobmash.click
synced 2025-03-15 08:09:02 +00:00
feat: Update favicon when navigating with hx-boost
This commit is contained in:
parent
5704aa2165
commit
e7a4bd9b7c
1 changed files with 6 additions and 0 deletions
|
@ -27,6 +27,12 @@
|
|||
<script type="application/javascript" src="/js/bundle.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
(function() {
|
||||
let favicon = document.querySelector("link[rel~='icon']");
|
||||
favicon.href = "<?= $favicon ?>";
|
||||
})();
|
||||
</script>
|
||||
<nav data-hx-boost="true">
|
||||
<div class="hamburger">
|
||||
<i class="closed fa fa-bars"></i>
|
||||
|
|
Loading…
Reference in a new issue