Skip to content
This repository has been archived by the owner on Mar 3, 2024. It is now read-only.

Commit

Permalink
correctly checks mobile and plays title screen music
Browse files Browse the repository at this point in the history
  • Loading branch information
ericoporto committed Oct 30, 2016
1 parent 11b72e6 commit 0d963f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/playbutton.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ playbutton = {


playbutton.callback = callback;
if(true/*mobilecheck()*/){
if(window.mobilecheck()){
var createButton = function(buttonname, context, func) {
var button = document.createElement("input");
button.type = "button";
Expand Down Expand Up @@ -66,6 +66,7 @@ playbutton = {

} else {
playbutton.callback();
bgmusic.play(resources.init['World']['initMusic']);
playbutton.callback = 0;
}
}
Expand Down

0 comments on commit 0d963f0

Please sign in to comment.