fix(): remove argument-less catch()

This commit is contained in:
Manu Mtz.-Almeida
2018-09-14 03:03:21 +02:00
parent b26c0178e1
commit ff919de972
4 changed files with 4 additions and 5 deletions

View File

@ -41,7 +41,7 @@ export function configFromSession(): any {
try {
const configStr = window.sessionStorage.getItem(IONIC_SESSION_KEY);
return configStr !== null ? JSON.parse(configStr) : {};
} catch {
} catch (e) {
return {};
}
}
@ -49,7 +49,7 @@ export function configFromSession(): any {
export function saveConfig(config: any) {
try {
window.sessionStorage.setItem(IONIC_SESSION_KEY, JSON.stringify(config));
} catch {
} catch (e) {
return;
}
}