mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 22:55:48 +01:00
Merge pull request #23 from wailsapp/Update-execution-order-in-Headless-mode
Update execution order in headless mode
This commit is contained in:
commit
83e063bf2b
2 changed files with 8 additions and 1 deletions
|
|
@ -215,7 +215,7 @@ func init() {
|
|||
|
||||
// If we are forcing a rebuild
|
||||
if forceRebuild {
|
||||
buildCommand.Add(" -a")
|
||||
buildCommand.Add("-a")
|
||||
}
|
||||
|
||||
// Release mode
|
||||
|
|
|
|||
|
|
@ -126,6 +126,13 @@ func (h *Headless) start(conn *websocket.Conn) {
|
|||
h.injectCSS(h.frameworkCSS)
|
||||
}
|
||||
|
||||
var injectHTML string
|
||||
if h.appConfig.isHTMLFragment {
|
||||
injectHTML = fmt.Sprintf("$('#app').html('%s')", h.appConfig.HTML)
|
||||
}
|
||||
|
||||
h.evalJS(injectHTML)
|
||||
|
||||
// Inject user CSS
|
||||
if h.appConfig.CSS != "" {
|
||||
outputCSS := fmt.Sprintf("%.45s", h.appConfig.CSS)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue