mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-27 21:26:41 +00:00
[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:
@@ -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