5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-03 02:19:43 +08:00

add \r\n for awaitIPC callback

This commit is contained in:
unknown 2021-10-11 16:41:11 +08:00
parent 8b5bcdfeff
commit 5d8653be83

View File

@ -102,7 +102,7 @@ func (a *BrowserAssetServer) Load(filename string) ([]byte, string, error) {
var buffer bytes.Buffer
buffer.WriteString("window.awaitIPC('" + filename + "', ()=>{")
buffer.Write(content)
buffer.WriteString("});")
buffer.WriteString("\r\n});")
content = buffer.Bytes()
}
}