diff --git a/.github/workflows/semgrep.yml b/.github/workflows/semgrep.yml index b40314b..bb1d808 100644 --- a/.github/workflows/semgrep.yml +++ b/.github/workflows/semgrep.yml @@ -1,12 +1,12 @@ on: pull_request: {} workflow_dispatch: {} - push: + push: branches: - main - master schedule: - - cron: '0 0 * * *' + - cron: "0 0 * * *" name: Semgrep config jobs: semgrep: diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..5370162 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,2 @@ +.yarn + diff --git a/src/useIframeSrc.tsx b/src/useIframeSrc.tsx index 5d57c52..bedc8c0 100644 --- a/src/useIframeSrc.tsx +++ b/src/useIframeSrc.tsx @@ -53,7 +53,7 @@ export function useIframeSrc( const iframeSrc = useMemo( () => customerCode - ? `https://customer-${customerCode}.cloudflarestream.com/${src}?${paramString}` + ? `https://customer-${customerCode}.cloudflarestream.com/${src}/iframe?${paramString}` : `https://iframe.cloudflarestream.com/${src}?${paramString}`, // we intentionally do NOT include paramString here because we want // to avoid changing the URL when these options change. Changes to