Skip to content

Commit

Permalink
got rid of pop up
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettdreyfus committed Aug 27, 2015
1 parent e2d9458 commit c47db6b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 38 deletions.
38 changes: 1 addition & 37 deletions js_v9/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
1 change: 0 additions & 1 deletion vendor/sweet-alert.css

This file was deleted.

0 comments on commit c47db6b

Please sign in to comment.