[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-23 07:09:53 +10:00
committed by GitHub
parent 75ee36f8eb
commit 524411964f
3 changed files with 3 additions and 3 deletions
@@ -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() {