From 30d022657f07bc5ad66413de65717c5c719e2e3d Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Sat, 22 Mar 2025 21:56:26 -0400 Subject: [PATCH] fix(crowdin): expose initCrowdIn to global scope --- src/js/crowdin.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/js/crowdin.js b/src/js/crowdin.js index c81db1f..33968fe 100644 --- a/src/js/crowdin.js +++ b/src/js/crowdin.js @@ -106,4 +106,9 @@ function initCrowdIn(project = 'LizardByte', platform = 'bootstrap') { }); } +// Expose to the global scope +if (typeof window !== 'undefined') { + window.initDiscord = initCrowdIn; +} + module.exports = initCrowdIn;