Modern Emoji: Use local storage to opt-in (#35605)
This commit is contained in:
parent
8452ec6f3b
commit
b81670776f
1 changed files with 8 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue