Skip to content

Commit

Permalink
Make the welcome screen not contain an error at startup
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed May 14, 2018
1 parent 08fb1dc commit 010c59a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/JBrowse/Browser.js
Expand Up @@ -167,11 +167,16 @@ constructor: function(params) {
var thisB = this;

dojo.addOnLoad( function() {
if(Util.isElectron() && !thisB.config.dataRoot) {
thisB.welcomeScreen(document.body);
return;
}
thisB.loadConfig().then( function() {

thisB.container = dojo.byId( thisB.config.containerID );
thisB.container.onselectstart = function() { return false; };


// initialize our highlight if one was set in the config
if( thisB.config.initialHighlight && thisB.config.initialHighlight != "/" )
thisB.setHighlight( new Location( thisB.config.initialHighlight ) );
Expand Down

0 comments on commit 010c59a

Please sign in to comment.