Skip to content

Commit

Permalink
revert fix of theme selector
Browse files Browse the repository at this point in the history
  • Loading branch information
vintikzzz committed Sep 25, 2024
1 parent ced8eaa commit c7ba1a8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions assets/src/js/app/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@ window.progress = {
};

import {bindAsync} from '../lib/async';
const av = (await import('../lib/asyncView')).initAsyncView;
// const av = (await import('../lib/asyncView')).initAsyncView;
import themeSelector from "../lib/themeSelector";

function onLoad() {
av(document.querySelector('nav'), 'index', async function() {
themeSelector(document.querySelector('[data-toggle-theme]'));
});
themeSelector(document.querySelector('[data-toggle-theme]'));
// av(document.querySelector('nav'), 'index', async function() {
// themeSelector(document.querySelector('[data-toggle-theme]'));
// });
document.body.style.display = 'flex';
hideProgress();
bindAsync({
Expand Down

0 comments on commit c7ba1a8

Please sign in to comment.