1
0
mirror of https://shylinux.com/x/ContextOS synced 2025-04-25 16:58:06 +08:00
This commit is contained in:
IT 老营长 @云轩领航-创始人 2023-03-10 17:21:21 +08:00
parent e0b085b32c
commit 3bfac6e81e

View File

@ -22,11 +22,11 @@ func main() {
if ice.Run(cli.SYSTEM, os.Args[0], "webview"); cli.IsSuccess(ice.Pulse) { if ice.Run(cli.SYSTEM, os.Args[0], "webview"); cli.IsSuccess(ice.Pulse) {
break break
} }
time.Sleep(time.Second)
} }
} else { } else {
go ice.Run(web.SERVE, tcp.START) go ice.Run(web.SERVE, tcp.START)
defer ice.Pulse.Cmd("exit") defer ice.Pulse.Cmd("exit")
time.Sleep(time.Second)
webview.Run(func(w *webview.WebView) ice.Any { return view{w} }) webview.Run(func(w *webview.WebView) ice.Any { return view{w} })
} }
} }