mirror of
https://github.com/wavetermdev/wails.git
synced 2026-08-05 13:53:43 -07:00
[v2] WindowReloadApp should use the startURL of the frontend to support reloading when a frontend dev server is used (#1347)
This commit is contained in:
@@ -116,7 +116,7 @@ func (f *Frontend) WindowReload() {
|
||||
}
|
||||
|
||||
func (f *Frontend) WindowReloadApp() {
|
||||
f.ExecJS(fmt.Sprintf("window.location.href = '%s';", startURL))
|
||||
f.ExecJS(fmt.Sprintf("window.location.href = '%s';", f.startURL))
|
||||
}
|
||||
|
||||
func (f *Frontend) WindowSetSystemDefaultTheme() {
|
||||
|
||||
@@ -172,7 +172,7 @@ func (f *Frontend) WindowUnfullscreen() {
|
||||
}
|
||||
|
||||
func (f *Frontend) WindowReloadApp() {
|
||||
f.ExecJS(fmt.Sprintf("window.location.href = '%s';", startURL))
|
||||
f.ExecJS(fmt.Sprintf("window.location.href = '%s';", f.startURL))
|
||||
}
|
||||
|
||||
func (f *Frontend) WindowShow() {
|
||||
|
||||
@@ -212,7 +212,7 @@ func (f *Frontend) WindowFullscreen() {
|
||||
}
|
||||
|
||||
func (f *Frontend) WindowReloadApp() {
|
||||
f.ExecJS(fmt.Sprintf("window.location.href = '%s';", startURL))
|
||||
f.ExecJS(fmt.Sprintf("window.location.href = '%s';", f.startURL))
|
||||
}
|
||||
|
||||
func (f *Frontend) WindowUnfullscreen() {
|
||||
|
||||
Reference in New Issue
Block a user