Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tyiuhc committed Jun 14, 2024
1 parent 844cd4f commit 0520e90
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/experiment-tag/src/messenger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ export class WindowMessenger {
context: { injectSrc: string };
}>,
) => {
const match = process.env.NODE_ENV === 'development' ? /^https:\/\/([\w\d]*\.)?amplitude\.com(:3000)?/ : /^https:\/\/.*\.amplitude\.com\//;
const match =
process.env.NODE_ENV === 'development'
? /^https:\/\/([\w\d]*\.)?amplitude\.com(:3000)?/
: /^https:\/\/.*\.amplitude\.com\//;
if (!match.test(e.origin)) {
return;
}
Expand Down

0 comments on commit 0520e90

Please sign in to comment.