mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-02 14:59:25 +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:
parent
75ee36f8eb
commit
524411964f
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user