Skip to content

Commit dff5e1e

Browse files
committed
feat(get-twitter): add support for x.com hostname
1 parent f7c7389 commit dff5e1e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/background/get-twitter.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ export async function getTwitterTitle(
1616
if (
1717
!(
1818
(url.hostname === "twitter.com" ||
19-
url.hostname === "mobile.twitter.com") &&
19+
url.hostname === "mobile.twitter.com" ||
20+
url.hostname === "x.com") &&
2021
/^\/\w+\/status\/\d+/.exec(url.pathname)
2122
)
2223
) {

0 commit comments

Comments
 (0)