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 }}
-
-
A restart is needed to apply some settings. Self-restarts aren't possible on Windows, so you must restart manually.
-
-
- {{ else }}
A restart is needed to apply some settings. Restart now, later, or cancel?
@@ -286,7 +277,6 @@
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 }}
Submit
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,
})
}