mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-25 00:06:32 +08:00
waiting for an event to be subscribed
This commit is contained in:
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user