Skip to content

Commit cf502a7

Browse files
committed
Logo sketch: onload postMessage, fix dark mode flash
1 parent de49962 commit cf502a7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

assets/nav.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@
231231
}
232232
function applyDark(on) {
233233
document.body.classList.toggle('dark-mode', on);
234+
document.documentElement.classList.remove('dark-pre');
234235
const btn = document.getElementById('nav-dark-btn');
235236
if (btn) {
236237
btn.textContent = on ? '☀️ Light' : '🌙 Dark';

0 commit comments

Comments
 (0)