mirror of
https://github.com/OliveTin/OliveTin
synced 2026-09-21 17:25:37 +00:00
feature: enableCustomJs toggle to allow loading ./custom-webui/custom.js (#379)
This commit is contained in:
@@ -31,6 +31,7 @@ type webUISettings struct {
|
||||
DefaultIconForBack string
|
||||
SshFoundKey string
|
||||
SshFoundConfig string
|
||||
EnableCustomJs bool
|
||||
}
|
||||
|
||||
func findWebuiDir() string {
|
||||
@@ -115,6 +116,7 @@ func generateWebUISettings(w http.ResponseWriter, r *http.Request) {
|
||||
DefaultIconForBack: cfg.DefaultIconForBack,
|
||||
SshFoundKey: installationinfo.Runtime.SshFoundKey,
|
||||
SshFoundConfig: installationinfo.Runtime.SshFoundConfig,
|
||||
EnableCustomJs: cfg.EnableCustomJs,
|
||||
})
|
||||
|
||||
w.Header().Add("Content-Type", "application/json")
|
||||
|
||||
Reference in New Issue
Block a user