Skip to content

Commit

Permalink
Merge pull request #79 from christophe-g/master
Browse files Browse the repository at this point in the history
Fix problem on state restore
  • Loading branch information
wolfgangmm committed Feb 21, 2015
2 parents 98f7946 + 12d1890 commit 426ae80
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/eXide.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ eXide.app = (function(util) {
// var southStatus = localStorage.getItem("eXide.layout.south");
// $("#layout-container").layout().toggle("south");

if (eXide.configuration.allowGuest) {
if (eXide.configuration && eXide.configuration.allowGuest) {
$("#splash").fadeOut(400);
} else {
app.requireLogin(function() {
Expand Down Expand Up @@ -1025,8 +1025,7 @@ eXide.app = (function(util) {

return {
branch: function(gitApp) {
console.info('git.branch');
if(!app.login.isAdmin) {return}
if(!app.login || !app.login.isAdmin) {return}
$.ajax({
type: "GET",
url: gitUrl,
Expand Down

0 comments on commit 426ae80

Please sign in to comment.