Allow modern_emojis to be enabled purely server-side (#36342)
This commit is contained in:
@@ -20,10 +20,7 @@ export function isFeatureEnabled(feature: Features) {
|
|||||||
|
|
||||||
export function isModernEmojiEnabled() {
|
export function isModernEmojiEnabled() {
|
||||||
try {
|
try {
|
||||||
return (
|
return isFeatureEnabled('modern_emojis');
|
||||||
isFeatureEnabled('modern_emojis') &&
|
|
||||||
localStorage.getItem('experiments')?.split(',').includes('modern_emojis')
|
|
||||||
);
|
|
||||||
} catch {
|
} catch {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user