We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb27750 commit d2f53bcCopy full SHA for d2f53bc
lib/url.js
@@ -92,10 +92,11 @@ export function parseYoutubeStart (t) {
92
/**
93
* check if it's an embed URL and if there's an available proxy for it
94
* @param {string} href
95
- * @param {string} provider
+ * @param {string} [provider]
96
* @returns {Object|null} if a proxy is available, returns an object with provider, service and href
97
*/
98
export function proxyEmbedUrl (href, provider) {
99
+ if (!href) return null
100
if (!provider) {
101
provider = parseEmbedUrl(href)?.provider
102
}
0 commit comments