mirror of
https://github.com/mastodon/mastodon.git
synced 2025-10-05 16:42:47 +00:00
allow modern_emojis to be enabled purely server-side
This commit is contained in:
parent
0d7af7e1fe
commit
9f4b665814
|
@ -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