fix(tap-click): desktop also needs tap-click

This commit is contained in:
Manu Mtz.-Almeida
2018-08-07 02:33:41 +02:00
parent 27fdc9a893
commit 9f4d873409

View File

@ -28,7 +28,7 @@ export class App {
} }
componentDidLoad() { componentDidLoad() {
importTapClick(this.win, this.isDevice); importTapClick(this.win);
importInputShims(this.win, this.config); importInputShims(this.win, this.config);
importStatusTap(this.win, this.isDevice, this.queue); importStatusTap(this.win, this.isDevice, this.queue);
} }
@ -57,10 +57,8 @@ async function importStatusTap(win: Window, device: boolean, queue: QueueApi) {
} }
} }
async function importTapClick(win: Window, device: boolean) { async function importTapClick(win: Window) {
if (device) {
(await import('../../utils/tap-click')).startTapClick(win.document); (await import('../../utils/tap-click')).startTapClick(win.document);
}
} }
async function importInputShims(win: Window, config: Config) { async function importInputShims(win: Window, config: Config) {