mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-09 00:14:57 +02:00
support for new Swoole push server
This commit is contained in:
@ -382,7 +382,7 @@
|
||||
// Open tutorial popup with an introduction video about egroupware
|
||||
if (window.framework === window.top.framework && typeof et2_dialog != 'undefined' &&
|
||||
!egw.preference('egw_tutorial_noautoload', 'common') &&
|
||||
!parseInt(document.getElementById('egw_script_id').getAttribute('data-framework-reload')) &&
|
||||
!parseInt(egw_script.getAttribute('data-framework-reload')) &&
|
||||
(!egw.config('egw_tutorial_disable', 'phpgwapi') || egw.config('egw_tutorial_disable', 'phpgwapi') == 'sidebox'))
|
||||
{
|
||||
// we need to wait until common translations are loaded
|
||||
@ -409,6 +409,15 @@
|
||||
{}, buttons, et2_dialog.QUESTION_MESSAGE, undefined, egw(window));
|
||||
}, this);
|
||||
}
|
||||
|
||||
// open websocket to push server for our top window
|
||||
if (egw === window.top.egw && egw_script.getAttribute('data-websocket-url'))
|
||||
{
|
||||
egw.json('websocket', {}, undefined, this).openWebSocket(
|
||||
egw_script.getAttribute('data-websocket-url'),
|
||||
JSON.parse(egw_script.getAttribute('data-websocket-tokens'))
|
||||
);
|
||||
}
|
||||
}
|
||||
catch(e) {
|
||||
// ignore SecurityError exception if top is different security context / cross-origin
|
||||
|
Reference in New Issue
Block a user