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

@ -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\" ",

View File

@ -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';

View File

@ -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;
} }
} }

View File

@ -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;
} }
} }