Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add Split URL script tag for Web Experimentation #103

Merged
merged 26 commits into from
Apr 16, 2024
Merged

Conversation

tyiuhc
Copy link
Collaborator

@tyiuhc tyiuhc commented Apr 9, 2024

Summary

Add Split URL script tag for Web Experimentation

Checklist

  • Does your PR title have the correct title format?
  • Does your PR have a breaking change?: No

@tyiuhc tyiuhc requested a review from bgiori April 9, 2024 22:08
packages/experiment-tag/package.json Show resolved Hide resolved
packages/experiment-tag/src/experiment.ts Outdated Show resolved Hide resolved
packages/experiment-tag/src/experiment.ts Outdated Show resolved Hide resolved
packages/experiment-tag/src/experiment.ts Outdated Show resolved Hide resolved
packages/experiment-tag/src/experiment.ts Outdated Show resolved Hide resolved
packages/experiment-tag/src/experiment.ts Outdated Show resolved Hide resolved
packages/experiment-tag/src/experiment.ts Outdated Show resolved Hide resolved
packages/experiment-tag/README.md Outdated Show resolved Hide resolved
@tyiuhc tyiuhc requested a review from bgiori April 12, 2024 20:53
continue;
}
for (const action of variant.payload) {
if (action.action === 'redirect') {
Copy link
Collaborator

Choose a reason for hiding this comment

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

similar nit, for large if blocks, prefer short circuiting:

if (action.action !== 'redirect') {
  continue;
}
// ...

@tyiuhc tyiuhc merged commit 9bf433b into main Apr 16, 2024
6 checks passed
@tyiuhc tyiuhc deleted the js-snippet branch April 16, 2024 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants