prefer window over top, which might cause a security exception

This commit is contained in:
Ralf Becker 2017-03-08 15:02:29 +01:00
parent ecf001fe06
commit c204350173

View File

@ -281,7 +281,7 @@ egw_json_request.prototype.setAppObject = function(_app)
egw_json_request.prototype._assembleAjaxUrl = function(_menuaction)
{
// Retrieve the webserver url
var webserver_url = egw_topWindow().egw_webserverUrl;
var webserver_url = window.egw_webserverUrl || egw_topWindow().egw_webserverUrl;
// Check whether the webserver_url is really set
// Don't check for !webserver_url as it might be empty.