forked from extern/egroupware
Initialize popup flag with window.opener detection, instead of false.
This commit is contained in:
parent
89e1757d9e
commit
7381f103e5
@ -41,7 +41,7 @@
|
|||||||
var egw_script = document.getElementById('egw_script_id');
|
var egw_script = document.getElementById('egw_script_id');
|
||||||
|
|
||||||
// Flag for if this is opened in a popup
|
// Flag for if this is opened in a popup
|
||||||
var popup = false;
|
var popup = (window.opener != null);
|
||||||
|
|
||||||
window.egw_webserverUrl = egw_script.getAttribute('data-url');
|
window.egw_webserverUrl = egw_script.getAttribute('data-url');
|
||||||
window.egw_appName = egw_script.getAttribute('data-app');
|
window.egw_appName = egw_script.getAttribute('data-app');
|
||||||
|
Loading…
Reference in New Issue
Block a user