Force modern emoji experimental to be dev mode only (#35505)

This commit is contained in:
Echo
2025-07-24 16:55:00 +02:00
committed by GitHub
parent 6fc77a545b
commit dfaca794bf
6 changed files with 26 additions and 19 deletions

View File

@@ -4,12 +4,16 @@ import { Globals } from '@react-spring/web';
import { setupBrowserNotifications } from 'mastodon/actions/notifications';
import Mastodon from 'mastodon/containers/mastodon';
import { isFeatureEnabled, me, reduceMotion } from 'mastodon/initial_state';
import { me, reduceMotion } from 'mastodon/initial_state';
import * as perf from 'mastodon/performance';
import ready from 'mastodon/ready';
import { store } from 'mastodon/store';
import { isProduction, isDevelopment } from './utils/environment';
import {
isProduction,
isDevelopment,
isModernEmojiEnabled,
} from './utils/environment';
function main() {
perf.start('main()');
@@ -29,7 +33,7 @@ function main() {
});
}
if (isFeatureEnabled('modern_emojis')) {
if (isModernEmojiEnabled()) {
const { initializeEmoji } = await import('@/mastodon/features/emoji');
await initializeEmoji();
}