5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-03 04:42:00 +08: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:
stffabi 2022-04-22 23:09:53 +02:00 committed by GitHub
parent 75ee36f8eb
commit 524411964f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -116,7 +116,7 @@ func (f *Frontend) WindowReload() {
} }
func (f *Frontend) WindowReloadApp() { 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() { func (f *Frontend) WindowSetSystemDefaultTheme() {

View File

@ -172,7 +172,7 @@ func (f *Frontend) WindowUnfullscreen() {
} }
func (f *Frontend) WindowReloadApp() { 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() { func (f *Frontend) WindowShow() {

View File

@ -212,7 +212,7 @@ func (f *Frontend) WindowFullscreen() {
} }
func (f *Frontend) WindowReloadApp() { 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() { func (f *Frontend) WindowUnfullscreen() {