소스 검색

Change simple icons provider

Svilen Markov 9 달 전
부모
커밋
18bb2d7501
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 2
      docs/configuration.md
  2. 1 1
      internal/widget/fields.go

+ 2 - 2
docs/configuration.md

@@ -1169,7 +1169,7 @@ icon: si:adguard
 
 
 > [!WARNING]
 > [!WARNING]
 >
 >
-> Simple Icons are loaded externally and are hosted on `cdnjs.cloudflare.com`, if you do not wish to depend on a 3rd party you are free to download the icons individually and host them locally.
+> Simple Icons are loaded externally and are hosted on `cdn.jsdelivr.net`, if you do not wish to depend on a 3rd party you are free to download the icons individually and host them locally.
 
 
 `allow-insecure`
 `allow-insecure`
 
 
@@ -1447,7 +1447,7 @@ icon: si:reddit
 
 
 > [!WARNING]
 > [!WARNING]
 >
 >
-> Simple Icons are loaded externally and are hosted on `cdnjs.cloudflare.com`, if you do not wish to depend on a 3rd party you are free to download the icons individually and host them locally.
+> Simple Icons are loaded externally and are hosted on `cdn.jsdelivr.net`, if you do not wish to depend on a 3rd party you are free to download the icons individually and host them locally.
 
 
 `same-tab`
 `same-tab`
 
 

+ 1 - 1
internal/widget/fields.go

@@ -183,7 +183,7 @@ func toSimpleIconIfPrefixed(icon string) (string, bool) {
 	}
 	}
 
 
 	icon = strings.TrimPrefix(icon, "si:")
 	icon = strings.TrimPrefix(icon, "si:")
-	icon = "https://cdnjs.cloudflare.com/ajax/libs/simple-icons/11.14.0/" + icon + ".svg"
+	icon = "https://cdn.jsdelivr.net/npm/simple-icons@latest/" + icon + ".svg"
 
 
 	return icon, true
 	return icon, true
 }
 }