We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df52dc5 commit 379edc7Copy full SHA for 379edc7
src/electron/main.cljs
@@ -128,8 +128,6 @@
128
(fn []
129
(.show ^js @main-window)
130
(.manage win-state ^js @main-window)
131
- (load-system-fonts!)
132
- (load-webref!)
133
(send-to-renderer! (if (.isMaximized ^js @main-window)
134
"windowMaximized"
135
"windowUnmaximized"))
@@ -139,6 +137,11 @@
139
137
(.hide ^js @loading-window)
140
138
(.close ^js @loading-window)))
141
+ (.on ^js @main-window "ready-to-show"
+ (fn []
142
+ (load-system-fonts!)
143
+ (load-webref!)))
144
+
145
(.loadURL ^js @main-window (if config/debug?
146
"http://localhost:8080"
147
(.join path "file://" js/__dirname "/public/index.html")))
0 commit comments