got rid of pop up

This commit is contained in:
Garrett Finucane 2015-08-26 22:41:39 -04:00
parent e2d9458e66
commit c47db6b306
2 changed files with 1 additions and 38 deletions

View file

@ -138,43 +138,7 @@ function hideText() {
}
function gameOverDisplay() {
if(Cookies.get("visited") == null){
settings.ending_block=true;
if(settings.os == "android"){
sweetAlert({
title: "Hey we'll only bother you once ",
text:"We do have an Android app!",
showCancelButton: true,
closeOnCancel: true ,
confirmButtonText: "Take me to it!",
},function(isConfirm){
if(isConfirm){
window.location.href="https://play.google.com/store/apps/details?id=com.hextris.hextris"
}
else{
settings.end_block=false;
}
});
}
if(settings.os == "ios"){
sweetAlert({
title: "Hey we'll only bother you once ",
text:"We do have an IOS app!",
showCancelButton: true,
closeOnCancel: true ,
confirmButtonText: "Take me to it!",
},function(isConfirm){
if(isConfirm){
window.location.href="https://itunes.apple.com/us/app/hextris/id903769553?mt=8";
}
else{
settings.end_block=false;
}
});
}
}
settings.ending_block=false;
Cookies.set("visited",true);
var c = document.getElementById("canvas");

File diff suppressed because one or more lines are too long