(url: string)
| 1193 | } |
| 1194 | |
| 1195 | function shouldProxyEmbedUrl(url: string): boolean { |
| 1196 | const ext = getUrlExtension(url)?.toLowerCase(); |
| 1197 | if (!ext) { |
| 1198 | return false; |
| 1199 | } |
| 1200 | |
| 1201 | return getMimeFromExtension(ext).startsWith("video/"); |
| 1202 | } |
| 1203 | |
| 1204 | function applyEmbedProxy(url: string): string { |
| 1205 | if (!settings.store.embedProxyEnabled) { |
no test coverage detected