This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Open native app through iframe so that mobile safari "invalid address" warnings be suppressed when the app is not installed. | |
* `window.location=url` will not open native app in the iframe of android chrome | |
* Android will go to the next page even if the url scheme is not supported | |
*/ | |
function openApp (url) { | |
if (window.chrome && navigator.userAgent.search(/\bChrome\b/)!=-1) { | |
window.location = url; | |
} else { |