Skip to content

Commit e29de84

Browse files
fix(crowdin): expose initCrowdIn to global scope (#99)
1 parent d462c1f commit e29de84

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/js/crowdin.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,4 +106,9 @@ function initCrowdIn(project = 'LizardByte', platform = 'bootstrap') {
106106
});
107107
}
108108

109+
// Expose to the global scope
110+
if (typeof window !== 'undefined') {
111+
window.initDiscord = initCrowdIn;
112+
}
113+
109114
module.exports = initCrowdIn;

0 commit comments

Comments
 (0)