mirror of
https://github.com/mastodon/mastodon.git
synced 2026-08-11 04:55:35 -05:00
Testing and types updates (#39657)
This commit is contained in:
@@ -15,6 +15,7 @@ import { throttle } from 'lodash';
|
||||
|
||||
import { determineEmojiMode } from '@/mastodon/features/emoji/mode';
|
||||
import { updateHtmlWithEmoji } from '@/mastodon/features/emoji/render';
|
||||
import type { InitialState } from '@/mastodon/initial_state';
|
||||
import loadKeyboardExtensions from '@/mastodon/load_keyboard_extensions';
|
||||
import { loadLocale, getLocale } from '@/mastodon/locales';
|
||||
import { loadPolyfills } from '@/mastodon/polyfills';
|
||||
@@ -83,7 +84,7 @@ async function loaded() {
|
||||
document.getElementById('initial-state')?.textContent;
|
||||
if (initialStateText) {
|
||||
const stateEmojiStyle = getNestedProperty(
|
||||
JSON.parse(initialStateText) as unknown,
|
||||
JSON.parse(initialStateText) as InitialState,
|
||||
'meta',
|
||||
'emoji_style',
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user