diff --git a/data/templates/admin.html b/data/templates/admin.html index 0b32df8..344f3e4 100644 --- a/data/templates/admin.html +++ b/data/templates/admin.html @@ -269,15 +269,6 @@ - {{ if .windows }} - - - {{ else }} @@ -286,7 +277,6 @@ - {{ end }} diff --git a/data/templates/setup.html b/data/templates/setup.html index b346418..6117b8f 100644 --- a/data/templates/setup.html +++ b/data/templates/setup.html @@ -359,11 +359,7 @@
Finished!

- {{ if .windows }} - Press the button below to submit your settings. Unfortunately you're running on Windows, so jfa-go cannot restart itself. You will manually have to restart. - {{ else }} Press the button below to submit your settings. The program will restart. Once it's done, refresh this page. - {{ end }}

diff --git a/main.go b/main.go index 7edfe5f..67ebd35 100644 --- a/main.go +++ b/main.go @@ -415,14 +415,8 @@ func start(asDaemon, firstCall bool) { } app.info.Printf("Starting router @ %s", address) } else { - windows := false - if PLATFORM == "windows" { - windows = true - } router.GET("/", func(gc *gin.Context) { - gc.HTML(200, "setup.html", gin.H{ - "windows": windows, - }) + gc.HTML(200, "setup.html", gin.H{}) }) router.POST("/testJF", app.TestJF) router.POST("/modifyConfig", app.ModifyConfig) diff --git a/views.go b/views.go index 0379b5e..a184fda 100644 --- a/views.go +++ b/views.go @@ -11,10 +11,6 @@ func (app *appContext) AdminPage(gc *gin.Context) { emailEnabled, _ := app.config.Section("invite_emails").Key("enabled").Bool() notificationsEnabled, _ := app.config.Section("notifications").Key("enabled").Bool() ombiEnabled := app.config.Section("ombi").Key("enabled").MustBool(false) - windows := false - if PLATFORM == "windows" { - windows = true - } gc.HTML(http.StatusOK, "admin.html", gin.H{ "bs5": bs5, "cssFile": app.cssFile, @@ -24,7 +20,6 @@ func (app *appContext) AdminPage(gc *gin.Context) { "version": VERSION, "commit": COMMIT, "ombiEnabled": ombiEnabled, - "windows": windows, }) }