diff --git a/conf/config.go b/conf/config.go index f0324eba..1399737c 100644 --- a/conf/config.go +++ b/conf/config.go @@ -35,7 +35,7 @@ func DefaultConfig() *Config { return &Config{ Address: "0.0.0.0", Port: 5244, - Assets: "jsdelivr", + Assets: "", Database: Database{ Type: "sqlite3", Port: 0, diff --git a/server/static.go b/server/static.go index 015c681c..fefcca62 100644 --- a/server/static.go +++ b/server/static.go @@ -21,7 +21,7 @@ func InitIndex() { // index, err = public.Public.Open("index.html") //} if conf.Conf.Assets == "" { - conf.Conf.Assets = "jsdelivr" + conf.Conf.Assets = conf.DefaultConfig().Assets } index, err = public.Public.Open(fmt.Sprintf("%s.html", conf.Conf.Assets)) if err != nil {