diff --git a/src/main/frontend/ui.cljs b/src/main/frontend/ui.cljs index 5f6e1c8dea8..64db8367591 100644 --- a/src/main/frontend/ui.cljs +++ b/src/main/frontend/ui.cljs @@ -395,9 +395,9 @@ (.on js/window.apis event function)) (p/then (ipc/ipc :getAppBaseInfo) #(let [{:keys [isFullScreen isMaximized]} (js->clj % :keywordize-keys true)] - (when isFullScreen (do - (.add cl "is-fullscreen") - (state/set-state! :electron/window-fullscreen? true))) + (when isFullScreen + (.add cl "is-fullscreen") + (state/set-state! :electron/window-fullscreen? true)) (when isMaximized (state/set-state! :electron/window-maximized? true))))))) (defn inject-dynamic-style-node!