From cfd11cf82108a857c726eea07b8497a2f7041761 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 2 Jul 2021 15:27:46 +0200 Subject: [PATCH] replace eval with Function constructor to quiten rollup warning --- api/js/jsapi/egw_open.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/js/jsapi/egw_open.js b/api/js/jsapi/egw_open.js index 7c920093d3..3c6d7fe96a 100644 --- a/api/js/jsapi/egw_open.js +++ b/api/js/jsapi/egw_open.js @@ -292,7 +292,7 @@ egw.extend('open', egw.MODULE_WND_LOCAL, function(_egw, _wnd) var url = _link; if (url.indexOf('javascript:') == 0) { - eval(url.substr(11)); + (new Function(url.substr(11)))(); return; } if (url.indexOf('mailto:') == 0)