From e0920467ea35564caadcbb88457e11da2e90369b Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 2 Nov 2015 17:04:40 +0000 Subject: [PATCH] fix (caught) TypeError: egw is not a function when initialising egw object --- phpgwapi/js/jsapi/egw.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/js/jsapi/egw.js b/phpgwapi/js/jsapi/egw.js index b8f99077a2..0dfdf0c367 100644 --- a/phpgwapi/js/jsapi/egw.js +++ b/phpgwapi/js/jsapi/egw.js @@ -130,7 +130,7 @@ } } try { - egw(window).message; + if (typeof egw == 'function') egw(window).message; } catch (e) { console.log('Security exception accessing window specific egw object --> creating new one', e);