hampusohlsson / browser-deeplink

Redirect mobile website users to your native iOS and/or Android app
MIT License
493 stars 173 forks source link

add return-value to open() function #8

Closed mindplay-dk closed 9 years ago

mindplay-dk commented 9 years ago

For example, in the case of an onclick-handler for an a-tag, you can tell if the link was opened or not, e.g. in the handler: if (deeplink.open(...)) event.preventDefault(); - so that, on desktops, the link can take you to a page with information about the app.

hampusohlsson commented 9 years ago

I understand now what you are trying to say :) In the case you just want to see if mobile or not, the PR looks good.