Skip to content

Commit

Permalink
[mirotalkbro] - fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
miroslavpejic85 committed Jan 20, 2025
1 parent 0535d8d commit 81682c2
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions public/js/viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@ function onBodyLoad() {
toggleMessages();
}

// =====================================================
// Handle theme
// =====================================================

const getMode = window.localStorage.mode || 'dark';
const dark = getMode === 'dark';
if (dark) body.classList.toggle('dark');

// =====================================================
// Handle ToolTips
// =====================================================
Expand Down Expand Up @@ -246,13 +254,6 @@ function sendToBroadcasterDataChannel(method, action = {}) {
);
}

// =====================================================
// Handle theme
// =====================================================

const getMode = window.localStorage.mode || 'dark';
if (getMode === 'dark') body.classList.toggle('dark');

// =====================================================
// Handle element display
// =====================================================
Expand Down

0 comments on commit 81682c2

Please sign in to comment.