fe7afa379f
Also replaced `magnific-popup` with `GLightbox`
14 lines
246 B
JavaScript
14 lines
246 B
JavaScript
/**
|
|
* Add listener for theme mode toggle
|
|
*/
|
|
const toggle = document.getElementById('mode-toggle');
|
|
|
|
export function modeWatcher() {
|
|
if (!toggle) {
|
|
return;
|
|
}
|
|
|
|
toggle.addEventListener('click', () => {
|
|
modeToggle.flipMode();
|
|
});
|
|
}
|