misc.js is a view dir file

This commit is contained in:
Ted Unangst 2023-08-19 01:12:50 -04:00
parent 20699112a0
commit 9658fb8605
1 changed files with 2 additions and 1 deletions

3
web.go
View File

@ -81,8 +81,8 @@ func getInfo(r *http.Request) map[string]interface{} {
templinfo["StyleParam"] = getassetparam(viewDir + "/views/style.css")
templinfo["LocalStyleParam"] = getassetparam(dataDir + "/views/local.css")
templinfo["JSParam"] = getassetparam(viewDir + "/views/honkpage.js")
templinfo["MiscJSParam"] = getassetparam(viewDir + "/views/misc.js")
templinfo["LocalJSParam"] = getassetparam(dataDir + "/views/local.js")
templinfo["MiscJSParam"] = getassetparam(dataDir + "/views/misc.js")
templinfo["ServerName"] = serverName
templinfo["IconName"] = iconName
templinfo["UserSep"] = userSep
@ -2685,6 +2685,7 @@ func serve() {
viewDir + "/views/style.css",
dataDir + "/views/local.css",
viewDir + "/views/honkpage.js",
viewDir + "/views/misc.js",
dataDir + "/views/local.js",
}
for _, s := range assets {