Merge branch 'master' of github.com:driftyco/ionic-native

This commit is contained in:
Ibby Hadeed 2016-11-23 08:05:34 -05:00
commit 3dd863cb49

View File

@ -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.');