Initialize popup flag with window.opener detection, instead of false.

This commit is contained in:
Nathan Gray 2013-12-19 17:18:01 +00:00
parent 89e1757d9e
commit 7381f103e5

View File

@ -41,7 +41,7 @@
var egw_script = document.getElementById('egw_script_id');
// 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_appName = egw_script.getAttribute('data-app');