Skip to content

Commit

Permalink
Add missing scriptSrc (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiaslins authored Dec 6, 2023
1 parent e789253 commit 8f4ebad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/web/src/generic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ function injectSpeedInsights(

const productionScript = isSelfHosted ? PROD_SCRIPT_URL : PROXY_SCRIPT_URL;

const src = isDevelopment() ? DEV_SCRIPT_URL : productionScript;
const src =
props.scriptSrc || (isDevelopment() ? DEV_SCRIPT_URL : productionScript);

if (document.head.querySelector(`script[src*="${src}"]`)) return null;

Expand Down

4 comments on commit 8f4ebad

@vercel
Copy link

@vercel vercel bot commented on 8f4ebad Dec 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 8f4ebad Dec 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 8f4ebad Dec 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 8f4ebad Dec 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.