Merge pull request #16 from ONLYOFFICE/feature/pre5.0.3
waiting for an event to be subscribed
This commit is contained in:
commit
1f8766ce68
|
@ -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