Skip to content

Commit

Permalink
fix: Added JS favicon handling
Browse files Browse the repository at this point in the history
  • Loading branch information
JoLoZ committed Sep 25, 2023
1 parent 5f80119 commit 501ed26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions static/resources/js/navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ async function navigate(slug, replace = false, loadData = true) {
document.title = `${data.title || 'Page not found'} - ${games[info.game].name} Wiki`;
document.querySelector('#current-game').innerText = games[info.game].name;

document.querySelector('link[rel=icon]').href = games[info.game].icon;
document.querySelector('link[rel=shortcut]').href = games[info.game].icon;
document.querySelector('link[rel=icon]').href = games[info.game].favicon || games[info.game].icon;
document.querySelector('link[rel=shortcut]').href = games[info.game].favicon || games[info.game].icon;

document.querySelector('.top-nav .game a').href = `/${info.game}`;

Expand Down

0 comments on commit 501ed26

Please sign in to comment.