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 e63cb7c849
commit 9361927edf

View File

@ -227,7 +227,7 @@ egw_json_request.prototype.setAppObject = function(_app)
egw_json_request.prototype._assembleAjaxUrl = function(_menuaction) egw_json_request.prototype._assembleAjaxUrl = function(_menuaction)
{ {
// Retrieve the webserver url // 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 // Check whether the webserver_url is really set
// Don't check for !webserver_url as it might be empty. // Don't check for !webserver_url as it might be empty.