Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.