From d7bfc54c026e4c23f53dea3e20601aa1948ebaf5 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)