fix(hardwareBackButton): added missing import of hardware back button… (#18794)

This commit is contained in:
Nico L
2019-07-17 17:54:19 +02:00
committed by Manu MA
parent 53179c475c
commit 978cc39009

View File

@ -15,15 +15,19 @@ export class App implements ComponentInterface {
componentDidLoad() { componentDidLoad() {
rIC(() => { rIC(() => {
const isHybrid = isPlatform(window, 'hybrid');
if (!config.getBoolean('_testing')) { if (!config.getBoolean('_testing')) {
import('../../utils/tap-click').then(module => module.startTapClick(config)); import('../../utils/tap-click').then(module => module.startTapClick(config));
} }
if (config.getBoolean('statusTap', isPlatform(window, 'hybrid'))) { if (config.getBoolean('statusTap', isHybrid)) {
import('../../utils/status-tap').then(module => module.startStatusTap()); import('../../utils/status-tap').then(module => module.startStatusTap());
} }
if (config.getBoolean('inputShims', needInputShims())) { if (config.getBoolean('inputShims', needInputShims())) {
import('../../utils/input-shims/input-shims').then(module => module.startInputShims(config)); import('../../utils/input-shims/input-shims').then(module => module.startInputShims(config));
} }
if (config.getBoolean('hardwareBackButton', isHybrid)) {
import('../../utils/hardware-back-button').then(module => module.startHardwareBackButton());
}
import('../../utils/focus-visible').then(module => module.startFocusVisible()); import('../../utils/focus-visible').then(module => module.startFocusVisible());
}); });