mirror of
https://github.com/mastodon/mastodon.git
synced 2025-09-06 18:01:05 +00:00
Modern Emoji: Use local storage to opt-in (#35605)
This commit is contained in:
parent
8452ec6f3b
commit
b81670776f
|
@ -19,5 +19,12 @@ export function isFeatureEnabled(feature: Features) {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function isModernEmojiEnabled() {
|
export function isModernEmojiEnabled() {
|
||||||
return isFeatureEnabled('modern_emojis') && isDevelopment();
|
try {
|
||||||
|
return (
|
||||||
|
isFeatureEnabled('modern_emojis') &&
|
||||||
|
localStorage.getItem('experiments')?.split(',').includes('modern_emojis')
|
||||||
|
);
|
||||||
|
} catch {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user