Skip to content

Commit

Permalink
Update the updateIndex function so that the definition is never missing
Browse files Browse the repository at this point in the history
Signed-off-by: GitHub <[email protected]>
  • Loading branch information
nishant-nayak authored Sep 21, 2023
1 parent 892e863 commit 08ff241
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions corpus/templates/components/dark_mode_toggle.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
localStorage.setItem("corpusTheme", theme);
}

{% if request.get_full_path == "/" %}
const updateIndex = (theme) => {
{% if request.get_full_path == "/" %}
if (theme == "winter") {
particlesJS.load('particles-js', '/static/js/particles.json');
$("#ieee-white").hide();
Expand All @@ -39,6 +39,6 @@
$(".light-logo").hide();
$(".dark-logo").show();
}
}
{% endif %}
}
</script>

0 comments on commit 08ff241

Please sign in to comment.