(shareableUrl: string)
| 44 | } |
| 45 | |
| 46 | export function buildEmbedUrl(shareableUrl: string): string { |
| 47 | const url = new URL(shareableUrl); |
| 48 | url.searchParams.set('embed', '1'); |
| 49 | return url.toString(); |
| 50 | } |
| 51 | |
| 52 | export function generateIframeHtml(embedUrl: string): string { |
| 53 | return `<iframe src="${embedUrl}" width="100%" height="600" frameborder="0" allowfullscreen></iframe>`; |
no outgoing calls
no test coverage detected