mirror of
https://github.com/mempool/mempool.git
synced 2025-02-24 22:58:30 +01:00
Possible fix for occasional inability to change language to English
Fixes #275
This commit is contained in:
parent
2b55ee1e07
commit
627e8e5e9a
1 changed files with 1 additions and 1 deletions
|
@ -263,6 +263,6 @@ export class DashboardComponent implements OnInit {
|
|||
try {
|
||||
document.cookie = `lang=${language}; expires=Thu, 18 Dec 2050 12:00:00 UTC; path=/`;
|
||||
} catch (e) { }
|
||||
this.document.location.href = `${language === 'en' ? '' : '/' + language}/${this.stateService.network}`;
|
||||
this.document.location.href = `/${language}/${this.stateService.network}`;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue