perf: reduce localstorage calls etc

This commit is contained in:
David Ralph
2021-08-15 20:33:06 +01:00
parent 16485c3d2c
commit e82ac7da9e
8 changed files with 21 additions and 30 deletions

View File

@@ -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();