Skip to content

Instantly share code, notes, and snippets.

@juniorthiesen
Created December 23, 2020 00:27
Show Gist options
  • Save juniorthiesen/6eedd48d10d44bc514351cee64626030 to your computer and use it in GitHub Desktop.
Save juniorthiesen/6eedd48d10d44bc514351cee64626030 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Beleleu Burger & Bar - Boa Viagem</title>
</head>
<body>
<script>
setTimeout(function(){
var destination = "ifood://restaurant/2ee58643-5e0c-40af-a2ff-46af8bc38412";
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