Created
October 23, 2015 23:20
-
-
Save aaustin/d05b2a650838ee2ffdd8 to your computer and use it in GitHub Desktop.
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
var fallbackFunction = function() { | |
window.location.replace('market://details?id=io.branch.testbed&referrer=specialparam'); | |
}; | |
var addIFrame = function() { | |
var iframe = document.createElement("iframe"); | |
iframe.style.border = "none"; | |
iframe.style.width = "1px"; | |
iframe.style.height = "1px"; | |
iframe.src = 'your_uri_scheme://'; | |
document.body.appendChild(iframe); | |
}; | |
addIFrame(); | |
setTimeout(fallbackFunction, 250); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment