mirror of
https://github.com/mastodon/mastodon.git
synced 2025-11-27 18:10:58 +00:00
Allow modern_emojis to be enabled purely server-side (#36342)
This commit is contained in:
parent
ffac4cb05f
commit
68a36d5a57
|
|
@ -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…
Reference in New Issue
Block a user