mirror of
https://github.com/penpot/penpot.git
synced 2025-05-19 07:56:11 +02:00
🐛 Prevent duplicate locale watcher on hot code reload
This commit is contained in:
parent
6323c3ac92
commit
f51e35aa9c
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@
|
|||
(swap! storage dissoc ::locale)
|
||||
(reset! locale (autodetect)))
|
||||
|
||||
(add-watch locale ::browser-font
|
||||
(add-watch locale "browser-font"
|
||||
(fn [_ _ _ locale]
|
||||
(log/info :hint "locale changed" :locale locale)
|
||||
(dom/set-html-lang! locale)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue