| var userAgent = window.navigator.userAgent.toLowerCase(); | |
| var isMobile = /iphone|ipod|ipad/.test( userAgent ); | |
| this.isMobile = !!ios; | |
| // proxy all calls through to native bridge if we are on mobile | |
| this.call = function () { | |
| if (!ios) return; | |
| NativeBridge.call.apply(this, arguments); | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment