diff --git a/src/plugins/3dtouch.ts b/src/plugins/3dtouch.ts index 40d1fc8855..52526839ca 100644 --- a/src/plugins/3dtouch.ts +++ b/src/plugins/3dtouch.ts @@ -108,7 +108,7 @@ export class ThreeDeeTouch { */ static onHomeIconPressed(): Observable { return new Observable(observer => { - if (window.ThreeDeeTouch && window.ThreeDeeTouch.onHomeIconPressed) { + if (window.ThreeDeeTouch) { window.ThreeDeeTouch.onHomeIconPressed = observer.next.bind(observer); } else { observer.error('3dTouch plugin is not available.');