aboutsummaryrefslogtreecommitdiffstats
path: root/src/I18n.js
diff options
context:
space:
mode:
authorLibravatar Vijay Aravamudhan <vraravam@users.noreply.github.com>2021-10-20 10:49:47 +0530
committerLibravatar GitHub <noreply@github.com>2021-10-20 10:49:47 +0530
commit9a64b4322adadbe18929c2da114eb0813426c4f9 (patch)
treee9dfa8b9e14b38720fa4487b7175ed26a8076da7 /src/I18n.js
parent5.6.3-nightly.38 [skip ci] (diff)
downloadferdium-app-9a64b4322adadbe18929c2da114eb0813426c4f9.tar.gz
ferdium-app-9a64b4322adadbe18929c2da114eb0813426c4f9.tar.zst
ferdium-app-9a64b4322adadbe18929c2da114eb0813426c4f9.zip
chore: use 'window['ferdi']' (split out from pr #2092) (#2104)
Co-authored-by: Markus Hatvan <markus_hatvan@aon.at>
Diffstat (limited to 'src/I18n.js')
-rw-r--r--src/I18n.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/I18n.js b/src/I18n.js
index 2a50050ee..b10c5a94b 100644
--- a/src/I18n.js
+++ b/src/I18n.js
@@ -12,7 +12,7 @@ import AppStore from './stores/AppStore';
12@observer 12@observer
13class I18N extends Component { 13class I18N extends Component {
14 componentDidUpdate() { 14 componentDidUpdate() {
15 window.ferdi.menu.rebuild(); 15 window['ferdi'].menu.rebuild();
16 } 16 }
17 17
18 render() { 18 render() {
@@ -22,7 +22,7 @@ class I18N extends Component {
22 <IntlProvider 22 <IntlProvider
23 {...{ locale, key: locale, messages: translations[locale] }} 23 {...{ locale, key: locale, messages: translations[locale] }}
24 ref={intlProvider => { 24 ref={intlProvider => {
25 window.ferdi.intl = intlProvider ? intlProvider.state.intl : null; 25 window['ferdi'].intl = intlProvider ? intlProvider.state.intl : null;
26 }} 26 }}
27 > 27 >
28 {children} 28 {children}