Skip to content

Commit

Permalink
Removed Java Script code that was left over from the highlight switching
Browse files Browse the repository at this point in the history
  • Loading branch information
awinterstein committed Dec 3, 2024
1 parent de7e2cc commit 87293ea
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions src/js/main.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
document.addEventListener("DOMContentLoaded", function() {
// ---------------- Switch Theme -------------------------
// On page load or when changing themes, best to add inline in `head` to avoid FOUC
if (window.matchMedia('(prefers-color-scheme: dark)').matches) {
document.getElementById("syntax_highlight").href = "/syntax-dark.css";
} else {
document.getElementById("syntax_highlight").href = "/syntax-light.css";
}

// ---------------- Toggle Sidebar -------------------------
document.getElementById('toggle-sidebar')?.addEventListener('click', toggleSidebar);

Expand Down
2 changes: 1 addition & 1 deletion static/js/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 87293ea

Please sign in to comment.