Skip to content

Commit

Permalink
Fixing isMobile undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
raonismaneoto committed Oct 10, 2018
1 parent 76f5671 commit 337b58d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion frontend/notification/pushNotificationService.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,13 @@
return navigator.userAgent.match(/IEMobile/i);
},
any: () => {
return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows());
return (
service._isMobile.Android() ||
service._isMobile.BlackBerry() ||
service._isMobile.iOS() ||
service._isMobile.Opera() ||
service._isMobile.Windows()
);
}
};

Expand Down

0 comments on commit 337b58d

Please sign in to comment.