tangled
alpha
login
or
join now
flo-bit.dev
/
blento
your personal website on atproto - mirror
blento.app
20
fork
atom
overview
issues
pulls
pipelines
small fix
Florian
3 weeks ago
21d6d58d
916f6626
+1
-1
1 changed file
expand all
collapse all
unified
split
src
lib
cards
BigSocialCard
index.ts
+1
-1
src/lib/cards/BigSocialCard/index.ts
···
175
175
176
176
export function detectPlatform(url: string): string | null {
177
177
for (const [platform, pattern] of Object.entries(platformPatterns)) {
178
178
-
if (pattern.test(url)) {
178
178
+
if (pattern.test(url) && platformsData[platform]) {
179
179
return platform;
180
180
}
181
181
}