Skip to content

Commit

Permalink
Try ensure theme for ninja-keys
Browse files Browse the repository at this point in the history
  • Loading branch information
utensil committed Oct 29, 2024
1 parent 480653f commit 9c37cdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bun/uts-forester.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ function getAppliedMode(userPreference) {

function setAppliedMode(mode) {
document.documentElement.dataset.appliedMode = mode
const ninja = document.querySelector('ninja-keys')
ninja.setAttribute('class', mode)
}

function rotatePreferences(userPreference) {
Expand All @@ -47,6 +45,8 @@ function toggleTheme() {

function search() {
const ninja = document.querySelector('ninja-keys')
const mode = document.documentElement.dataset.appliedMode
ninja.setAttribute('class', mode)
ninja.open()
}

Expand Down

0 comments on commit 9c37cdd

Please sign in to comment.