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

[windows] WebView2 check fix

This commit is contained in:
Lea Anthony 2021-09-06 17:44:57 +10:00
parent 227c316cb0
commit ac06e6728d

View File

@ -29,7 +29,10 @@ func (i *Info) discover() error {
func checkWebView2() *packagemanager.Dependancy {
info := webview2runtime.GetInstalledVersion()
version := info.Version
version := ""
if info != nil {
version = info.Version
}
installed := version != ""
return &packagemanager.Dependancy{