mirror of
https://github.com/pcvolkmer/idicon.git
synced 2025-07-02 03:42:54 +00:00
Use long and short gh param value for color scheme and pattern
This commit is contained in:
@ -47,12 +47,12 @@ func requestHandler(w http.ResponseWriter, r *http.Request) {
|
||||
cFunc := icons.ColorV2
|
||||
if colorScheme == "v1" {
|
||||
cFunc = icons.ColorV1
|
||||
} else if colorScheme == "gh" {
|
||||
} else if colorScheme == "gh" || colorScheme == "github" {
|
||||
cFunc = icons.ColorGh
|
||||
}
|
||||
|
||||
var iconGenerator icons.IconGenerator
|
||||
if pattern == "github" {
|
||||
if pattern == "github" || pattern == "gh" {
|
||||
iconGenerator = icons.NewGhIconGenerator().WithColorGenerator(cFunc)
|
||||
} else {
|
||||
iconGenerator = icons.NewIdIconGenerator().WithColorGenerator(cFunc)
|
||||
|
Reference in New Issue
Block a user