mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 04:53:58 +08:00
fix(hardwareBackButton): added missing import of hardware back button… (#18794)
This commit is contained in:
@ -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());
|
||||||
|
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user