mirror of
https://github.com/wassname/talk.git
synced 2026-09-23 13:50:35 +08:00
Removed storage check
This commit is contained in:
@@ -52,11 +52,7 @@ let lang;
|
||||
let timeagoInstance;
|
||||
|
||||
function setLocale(storage, locale) {
|
||||
try {
|
||||
storage.setItem('locale', locale);
|
||||
} catch (err) {
|
||||
console.warn('Error while trying to persist the language detection', err);
|
||||
}
|
||||
storage.setItem('locale', locale);
|
||||
}
|
||||
|
||||
// detectLanguage will try to get the locale from storage if available,
|
||||
|
||||
Reference in New Issue
Block a user