Skip to content

Commit

Permalink
Fix feross#4
Browse files Browse the repository at this point in the history
  • Loading branch information
Hacksore committed Dec 3, 2023
1 parent 5d2db16 commit 23c4ef8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Binary file added static/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<head>
<meta charset='UTF-8'>
<meta name='theme-color' content='#fff' class='theme-color'/>
<link rel='icon' id='favicon' href='/favicon.png' type='image/png'/>
<style>
html, body {
width: 100%;
Expand Down
5 changes: 5 additions & 0 deletions static/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1167,3 +1167,8 @@ function detectBrowser () {
return 'firefox'
}
}

// make sure the favicon is never cached
const link = document.createElement('link')
link.rel = 'shortcut icon'
link.href = '/favicon.png?' + Date.now()

0 comments on commit 23c4ef8

Please sign in to comment.