Add local light icons
All checks were successful
Build and Push Docker Image / prepare (push) Successful in 1m9s
All checks were successful
Build and Push Docker Image / prepare (push) Successful in 1m9s
This commit is contained in:
parent
638289b8a4
commit
324c4be452
1 changed files with 1 additions and 1 deletions
|
@ -142,7 +142,7 @@ func handleLocalIcons(title, ext string) (string, string) {
|
|||
if os.IsNotExist(err) {
|
||||
return "", ""
|
||||
}
|
||||
filePathLight := strings.Replace(title, ext, "-light"+ext, 1)
|
||||
filePathLight := strings.Replace(filePath, ext, "-light"+ext, 1)
|
||||
_, err = os.Stat(filePathLight)
|
||||
if os.IsNotExist(err) {
|
||||
return "/" + strings.TrimPrefix(filePath, storageFolder), ""
|
||||
|
|
Loading…
Add table
Reference in a new issue