resolved direction issue in Arabic on browser reload

aconnect-UX/reporting-translation-updates
Mazdak Gibran 6 days ago
parent ed48419fc0
commit ef3952650d

@ -35,6 +35,10 @@ export class AppComponent {
this.direction = this.storageService.getItem('direction') || directions.LTR;
this.storageService.setItem('direction', this.direction);
if (typeof document !== 'undefined') {
document.documentElement.setAttribute('dir', this.direction);
}
const userStr = this.storageService.getItem('user');
if (userStr) {
try {

Loading…
Cancel
Save