Skip to content

Commit

Permalink
fix(ui/dark_mode): apply dark mode config option before mounting ui (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
qwqcode committed Aug 28, 2024
1 parent 059bac8 commit 2705581
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ui/artalk/src/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class Context implements ContextApi {
this.$root = conf.el as HTMLElement
this.$root.classList.add('artalk')
this.$root.innerHTML = ''
conf.darkMode && this.$root.classList.add('atk-dark-mode')

this.data = new DataManager(this.events)

Expand Down

0 comments on commit 2705581

Please sign in to comment.