Skip to content
This repository has been archived by the owner on Dec 1, 2019. It is now read-only.

Commit

Permalink
fix some error
Browse files Browse the repository at this point in the history
  • Loading branch information
vrabe committed Aug 13, 2015
1 parent 8a5e3c1 commit 1a5eb03
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ var Index = (function() {
if(complete[i] === false)
return;
}
name = JSON.parse(window.localStorage.padboxer_name);
evolution = JSON.parse(window.localStorage.padboxer_evolution);
ultimate = JSON.parse(window.localStorage.padboxer_ultimate);
modal.modal('hide');
document.location.reload(true);
}
Expand Down Expand Up @@ -84,9 +81,14 @@ var Index = (function() {
if(now - updated > (86400000 * 7))
externalLoad();
else{
name = JSON.parse(window.localStorage.padboxer_name);
evolution = JSON.parse(window.localStorage.padboxer_evolution);
ultimate = JSON.parse(window.localStorage.padboxer_ultimate);
try{
name = JSON.parse(window.localStorage.padboxer_name);
evolution = JSON.parse(window.localStorage.padboxer_evolution);
ultimate = JSON.parse(window.localStorage.padboxer_ultimate);
}catch(e){
alert(e);
externalLoad();
}
}
}
},
Expand Down

0 comments on commit 1a5eb03

Please sign in to comment.