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

feat(index): add new feature flag system #178

Merged
merged 1 commit into from
May 31, 2024
Merged

Conversation

trieloff
Copy link
Contributor

@trieloff trieloff commented May 29, 2024

See also #177

Copy link

This PR will trigger a minor release when merged.

@trieloff trieloff merged commit 3f7c152 into main May 31, 2024
5 checks passed
Copy link

🎉 This PR is included in version 2.10.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Comment on lines +17 to +25
const fflags = {
has: (flag) => this[flag].indexOf(Array.from(window.origin)
.map((a) => a.charCodeAt(0))
.reduce((a, b) => a + b, 1) % 1371) !== -1,
enabled: (flag, callback) => this.has(flag) && callback(),
disabled: (flag, callback) => !this.has(flag) && callback(),
onetrust: [543, 770, 1136],
};

Copy link
Contributor

Choose a reason for hiding this comment

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

@trieloff No tests mean broken code in production... arrow functions do not have a this! This code fails.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants