Skip to content

Commit

Permalink
fix(3dTouch): fixes onHomeIconPressed (#813)
Browse files Browse the repository at this point in the history
  • Loading branch information
5uper authored and ihadeed committed Nov 23, 2016
1 parent 28f4680 commit 695099b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/3dtouch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export class ThreeDeeTouch {
*/
static onHomeIconPressed(): Observable<any> {
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.');
Expand Down

0 comments on commit 695099b

Please sign in to comment.