ENVIRONMENT -> NODE_ENV

This commit is contained in:
David Joy
2019-05-08 14:22:58 -04:00
parent 19c12118b3
commit f3693c156c

View File

@@ -169,7 +169,7 @@ const rtlLocales = ['ar', 'he', 'fa', 'ur'];
const isRtl = locale => rtlLocales.includes(locale);
const handleRtl = () => {
if (process.env.ENVIRONMENT === 'production') {
if (process.env.NODE_ENV === 'production') {
if (isRtl(getLocale())) {
document.getElementsByTagName('html')[0].setAttribute('dir', 'rtl');
document.styleSheets[0].disabled = true;