Handle the 'extension loaded, reopen window' scenario
Not sure exactly how to think about Chrome app lifetimes, so we're being conservative. We only show the full-application loading screen once, on first display of the inbox. FREEBIE
This commit is contained in:
parent
53f2bfbb57
commit
39795170c1
2 changed files with 12 additions and 4 deletions
|
@ -80,6 +80,8 @@
|
|||
.addClass(theme);
|
||||
},
|
||||
initialize: function (options) {
|
||||
options = options || {};
|
||||
|
||||
this.ready = false;
|
||||
this.render();
|
||||
this.applyTheme();
|
||||
|
@ -90,9 +92,11 @@
|
|||
model: { window: options.window }
|
||||
});
|
||||
|
||||
this.appLoadingScreen = new Whisper.AppLoadingScreen();
|
||||
this.appLoadingScreen.render();
|
||||
this.appLoadingScreen.$el.prependTo(this.el);
|
||||
if (!options.initialLoadComplete) {
|
||||
this.appLoadingScreen = new Whisper.AppLoadingScreen();
|
||||
this.appLoadingScreen.render();
|
||||
this.appLoadingScreen.$el.prependTo(this.el);
|
||||
}
|
||||
|
||||
var inboxCollection = getInboxCollection();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue