Add query param 'size' as alias for 's'

This commit is contained in:
2024-05-05 18:49:08 +02:00
parent 16d569c457
commit eb093f9cb2
3 changed files with 35 additions and 1 deletions

View File

@ -18,7 +18,10 @@ func requestHandler(w http.ResponseWriter, r *http.Request) {
size, err := strconv.Atoi(r.URL.Query().Get("s"))
if err != nil {
size = 80
size, err = strconv.Atoi(r.URL.Query().Get("size"))
if err != nil {
size = 80
}
}
colorScheme := r.URL.Query().Get("c")