waiting for an event to be subscribed
This commit is contained in:
parent
0d8db7c5f2
commit
270f9499b5
|
@ -134,7 +134,10 @@ require([
|
|||
// api.asc_registerCallback('asc_onOpenDocumentProgress', onOpenDocument);
|
||||
api.asc_registerCallback('asc_onGetEditorPermissions', onEditorPermissions);
|
||||
|
||||
api.sendFromReporter('i:am:ready');
|
||||
setTimeout(function(){
|
||||
// waiting for an event to be subscribed
|
||||
api.sendFromReporter('i:am:ready');
|
||||
}, 500);
|
||||
|
||||
}, function(err) {
|
||||
if (err.requireType == 'timeout' && !reqerr && window.requireTimeourError) {
|
||||
|
|
Loading…
Reference in a new issue