mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 04:14:21 +08:00
fix(): remove argument-less catch()
This commit is contained in:
@ -75,7 +75,6 @@
|
|||||||
"test": "stencil test --spec",
|
"test": "stencil test --spec",
|
||||||
"test.e2e": "stencil test --e2e",
|
"test.e2e": "stencil test --e2e",
|
||||||
"test.screenshot": "stencil test --e2e --screenshot --compare",
|
"test.screenshot": "stencil test --e2e --screenshot --compare",
|
||||||
"test.watch": "jest --watch --no-cache",
|
|
||||||
"theme-app-build": "stencil build --dev --config scripts/theme-builder/stencil.config.js",
|
"theme-app-build": "stencil build --dev --config scripts/theme-builder/stencil.config.js",
|
||||||
"theme-builder": "sd concurrent \"npm run theme-app-build\" \"stencil build --dev --watch\" \"stencil-dev-server\" \"npm run theme-server\" ",
|
"theme-builder": "sd concurrent \"npm run theme-app-build\" \"stencil build --dev --watch\" \"stencil-dev-server\" \"npm run theme-server\" ",
|
||||||
"theme-builder:dev": "sd concurrent \"npm run theme-app-build -- --watch\" \"stencil build --dev --watch\" \"stencil-dev-server\" \"npm run theme-server\" ",
|
"theme-builder:dev": "sd concurrent \"npm run theme-app-build -- --watch\" \"stencil build --dev --watch\" \"stencil-dev-server\" \"npm run theme-server\" ",
|
||||||
|
@ -3,7 +3,7 @@ import { Component, Element, Event, EventEmitter, Listen, Method, Prop } from '@
|
|||||||
import { Animation, AnimationBuilder, ComponentProps, ComponentRef, Config, FrameworkDelegate, Mode, OverlayEventDetail, OverlayInterface } from '../../interface';
|
import { Animation, AnimationBuilder, ComponentProps, ComponentRef, Config, FrameworkDelegate, Mode, OverlayEventDetail, OverlayInterface } from '../../interface';
|
||||||
import { attachComponent, detachComponent } from '../../utils/framework-delegate';
|
import { attachComponent, detachComponent } from '../../utils/framework-delegate';
|
||||||
import { BACKDROP, dismiss, eventMethod, present } from '../../utils/overlays';
|
import { BACKDROP, dismiss, eventMethod, present } from '../../utils/overlays';
|
||||||
import { createThemedClasses, getClassMap } from '../../utils/theme';
|
import { getClassMap } from '../../utils/theme';
|
||||||
import { deepReady } from '../../utils/transition';
|
import { deepReady } from '../../utils/transition';
|
||||||
|
|
||||||
import { iosEnterAnimation } from './animations/ios.enter';
|
import { iosEnterAnimation } from './animations/ios.enter';
|
||||||
|
@ -41,7 +41,7 @@ export function configFromSession(): any {
|
|||||||
try {
|
try {
|
||||||
const configStr = window.sessionStorage.getItem(IONIC_SESSION_KEY);
|
const configStr = window.sessionStorage.getItem(IONIC_SESSION_KEY);
|
||||||
return configStr !== null ? JSON.parse(configStr) : {};
|
return configStr !== null ? JSON.parse(configStr) : {};
|
||||||
} catch {
|
} catch (e) {
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -49,7 +49,7 @@ export function configFromSession(): any {
|
|||||||
export function saveConfig(config: any) {
|
export function saveConfig(config: any) {
|
||||||
try {
|
try {
|
||||||
window.sessionStorage.setItem(IONIC_SESSION_KEY, JSON.stringify(config));
|
window.sessionStorage.setItem(IONIC_SESSION_KEY, JSON.stringify(config));
|
||||||
} catch {
|
} catch (e) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,7 @@ function supportsPassive(node: Node) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
node.addEventListener('optsTest', () => { return; }, opts);
|
node.addEventListener('optsTest', () => { return; }, opts);
|
||||||
} catch {
|
} catch (e) {
|
||||||
_sPassive = false;
|
_sPassive = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user