Fix a race condition causing the drive toolbar to be missing
parent
2e247d44c7
commit
dc39c4e179
|
@ -24,7 +24,6 @@ define([
|
|||
};
|
||||
|
||||
var APP = window.APP = {
|
||||
$bar: $iframe.find('#toolbar'),
|
||||
editable: false,
|
||||
Cryptpad: Cryptpad,
|
||||
loggedIn: Cryptpad.isLoggedIn()
|
||||
|
@ -1766,6 +1765,8 @@ define([
|
|||
|
||||
// don't initialize until the store is ready.
|
||||
Cryptpad.ready(function () {
|
||||
APP.$bar = $iframe.find('#toolbar');
|
||||
|
||||
var storeObj = Cryptpad.getStore().getProxy && Cryptpad.getStore().getProxy().proxy ? Cryptpad.getStore().getProxy() : undefined;
|
||||
|
||||
Cryptpad.styleAlerts();
|
||||
|
|
Loading…
Reference in New Issue