From 06fad51d7a310f5a14394484efbaf208f77289f7 Mon Sep 17 00:00:00 2001 From: JoLoZ Date: Fri, 29 Sep 2023 14:29:51 +0200 Subject: [PATCH] feat: Special Momentum treatment --- static/resources/js/navigation.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/static/resources/js/navigation.js b/static/resources/js/navigation.js index 0b511e7..2274a62 100644 --- a/static/resources/js/navigation.js +++ b/static/resources/js/navigation.js @@ -143,6 +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(".game h2").innerText = info.game == "momentum" ? "Engine Reference" : "Documentation"; + 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;