Skip to content

Instantly share code, notes, and snippets.

@aaustin
Created October 23, 2015 23:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aaustin/d05b2a650838ee2ffdd8 to your computer and use it in GitHub Desktop.
Save aaustin/d05b2a650838ee2ffdd8 to your computer and use it in GitHub Desktop.
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