[Glitch] Modern Emoji: Use local storage to opt-in
Port b81670776f to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
1 parent
dbab707d64
commit
c5144c0c7d
1 file changed
+8
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user