diff --git a/shared/editor/nodes/Emoji.tsx b/shared/editor/nodes/Emoji.tsx index aacd8f96f..82153419b 100644 --- a/shared/editor/nodes/Emoji.tsx +++ b/shared/editor/nodes/Emoji.tsx @@ -26,9 +26,10 @@ export default class Emoji extends Suggestion { } get defaultOptions() { - const languageIsUsingColon = languagesUsingColon.includes( - navigator?.language.slice(0, 2) - ); + const languageIsUsingColon = + typeof window === "undefined" + ? false + : languagesUsingColon.includes(window.navigator.language.slice(0, 2)); return { type: SuggestionsMenuType.Emoji,