Modern Emoji: Use local storage to opt-in (#35605)

This commit is contained in:
Echo 2025-07-31 15:33:34 +02:00 committed by GitHub
parent 8452ec6f3b
commit b81670776f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -19,5 +19,12 @@ export function isFeatureEnabled(feature: Features) {
}
export function isModernEmojiEnabled() {
return isFeatureEnabled('modern_emojis') && isDevelopment();
try {
return (
isFeatureEnabled('modern_emojis') &&
localStorage.getItem('experiments')?.split(',').includes('modern_emojis')
);
} catch {
return false;
}
}