[Glitch] Allow modern_emojis to be enabled purely server-side
Port 68a36d5a57269e34c76305b49628a36a87c21b74 to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
0281768cfd
commit
d5ce785267
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user