Skip to content

Commit b2d8165

Browse files
Fix the default size of the favicon (#55)
* Fix the default size of the favicon * fix homepage
1 parent 12b811f commit b2d8165

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

docs/utils-reference/getting-started.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ npm install --save @raycast/utils
1616

1717
## Changelog
1818

19+
### v2.1.1
20+
21+
- Fix the default size of `getFavicon`.
22+
1923
### v2.1.0
2024

2125
- `getFavicon` will now respect the user's setting for the favicon provider. Note that the `Apple` provider isn't supported since it relies on a native API.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name": "@raycast/utils",
3-
"version": "2.1.0",
3+
"version": "2.1.1",
44
"description": "Set of utilities to streamline building Raycast extensions",
55
"author": "Raycast Technologies Ltd.",
6-
"homepage": "https://developers.raycast.com/utils-reference",
6+
"homepage": "https://developers.raycast.com/utilities/getting-started",
77
"source": "src/index.ts",
88
"main": "dist/main.js",
99
"module": "dist/module.js",

src/icon/favicon.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export function getFavicon(
7777
case "raycast":
7878
default:
7979
return {
80-
source: `https://api.ray.so/favicon?url=${hostname}&size=${options?.size}`,
80+
source: `https://api.ray.so/favicon?url=${hostname}&size=${options?.size ?? 64}`,
8181
fallback: options?.fallback ?? Icon.Link,
8282
mask: options?.mask,
8383
};

0 commit comments

Comments
 (0)