Created
December 23, 2020 00:33
-
-
Save juniorthiesen/dd5102accec63af985809565fc3d05aa to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="pt-BR"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Co.wok Boa Viagem</title> | |
</head> | |
<body> | |
<script> | |
setTimeout(function(){ | |
var destination = "ifood://restaurant/7080763b-a8e7-43e9-ae42-196ad8161b11"; | |
if( navigator.userAgent.match(/Android/i) ) { | |
// use Android's redirect | |
document.location = destination; | |
} | |
else { | |
// use iOS redirect | |
window.location.replace( destination ); | |
} | |
}, 1000); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment