mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 19:57:22 +08:00
fix(): remove argument-less catch()
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user