From 9361927edf9303e134fde08d348d2ffafb330694 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 8 Mar 2017 15:02:29 +0100 Subject: [PATCH] prefer window over top, which might cause a security exception --- api/js/egw_json.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/js/egw_json.js b/api/js/egw_json.js index 96fcb470c5..38c58d6e6a 100644 --- a/api/js/egw_json.js +++ b/api/js/egw_json.js @@ -227,7 +227,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.