using history.pushState in Firefox make my favicon disappear

前端 未结 1 1607
南旧
南旧 2021-01-13 06:31

using something like

history.pushState(null, document.title, \"?#\");

in my site make my favicon disappear in Firefox, But it works in chro

相关标签:
1条回答
  • 2021-01-13 06:57

    I had similar issue in IE. Whenever I called history.replaceState() favicon disappeared. Favicon was included via link tag like this:

    <link rel="shortcut icon" href="/img/resources/favicon.ico" type="image/x-icon">
    

    After I placed favicon.ico to the root folder of my application and removed link, which pointed to it, problem with calling history.replaceState() disappeared. Hope that helps.

    0 讨论(0)
提交回复
热议问题