fix: undefined: webview during build

This commit is contained in:
Toyam Cox
2019-08-25 04:08:21 -04:00
parent a5f9688708
commit 36e906507d

View File

@@ -49,14 +49,14 @@ func (w *WebView) Initialise(config interfaces.AppConfig, ipc interfaces.IPCMana
w.config = config
// Create the WebView instance
w.window = wv.NewWebview(webview.Settings{
w.window = wv.NewWebview(wv.Settings{
Width: config.GetWidth(),
Height: config.GetHeight(),
Title: config.GetTitle(),
Resizable: config.GetResizable(),
URL: config.GetDefaultHTML(),
Debug: !config.GetDisableInspector(),
ExternalInvokeCallback: func(_ webview.WebView, message string) {
ExternalInvokeCallback: func(_ wv.WebView, message string) {
w.ipc.Dispatch(message)
},
})