mirror of
https://github.com/mue/mue.git
synced 2026-07-17 22:14:13 +02:00
perf: reduce localstorage calls etc
This commit is contained in:
@@ -96,7 +96,7 @@ export default class DateWidget extends PureComponent {
|
||||
});
|
||||
} else {
|
||||
// Long date
|
||||
const lang = localStorage.getItem('language').split('_')[0];
|
||||
const lang = window.languagecode.split('_')[0];
|
||||
|
||||
const nth = (localStorage.getItem('datenth') === 'true') ? dtf.nth(date.getDate()) : date.getDate();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user