Skip to content
Snippets Groups Projects
Unverified Commit 450076cf authored by Caipira's avatar Caipira Committed by GitHub
Browse files

enhance(client): mobile twitter url can be used as widget (#9057)

parent 253f005e
No related branches found
No related tags found
No related merge requests found
......@@ -68,7 +68,7 @@ let tweetHeight = $ref(150);
const requestUrl = new URL(props.url);
if (requestUrl.hostname === 'twitter.com') {
if (requestUrl.hostname === 'twitter.com' || requestUrl.hostname === 'mobile.twitter.com') {
const m = requestUrl.pathname.match(/^\/.+\/status(?:es)?\/(\d+)/);
if (m) tweetId = m[1];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment