split theme configuration flags
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
"encoding/json"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"os"
|
||||
"strings"
|
||||
"time"
|
||||
@@ -69,6 +70,13 @@ func (p Web) getPayload() (payload []byte, err error) {
|
||||
p.config.Web.Config.Options["hideSearchBar"] = true
|
||||
}
|
||||
|
||||
// build theme url
|
||||
if themeServer, err := url.Parse(p.config.Web.Config.ThemeServer); err == nil {
|
||||
p.config.Web.Config.Theme = themeServer.String() + p.config.Web.Config.ThemePath
|
||||
} else {
|
||||
p.config.Web.Config.Theme = p.config.Web.Config.ThemePath
|
||||
}
|
||||
|
||||
if p.config.Web.Config.ExternalApps == nil {
|
||||
p.config.Web.Config.ExternalApps = []config.ExternalApp{
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user