From 9a64b4322adadbe18929c2da114eb0813426c4f9 Mon Sep 17 00:00:00 2001 From: Vijay Aravamudhan Date: Wed, 20 Oct 2021 10:49:47 +0530 Subject: chore: use 'window['ferdi']' (split out from pr #2092) (#2104) Co-authored-by: Markus Hatvan --- src/I18n.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/I18n.js') 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'; @observer class I18N extends Component { componentDidUpdate() { - window.ferdi.menu.rebuild(); + window['ferdi'].menu.rebuild(); } render() { @@ -22,7 +22,7 @@ class I18N extends Component { { - window.ferdi.intl = intlProvider ? intlProvider.state.intl : null; + window['ferdi'].intl = intlProvider ? intlProvider.state.intl : null; }} > {children} -- cgit v1.2.3-70-g09d2