|
|
|
|
@ -35,9 +35,9 @@ 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);
|
|
|
|
|
}
|
|
|
|
|
// if (typeof document !== 'undefined') {
|
|
|
|
|
// document.documentElement.setAttribute('dir', this.direction);
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
const userStr = this.storageService.getItem('user');
|
|
|
|
|
if (userStr) {
|
|
|
|
|
|