From 51b2e5f8cf0e0602646c67841916a12af5b41102 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Mon, 18 Mar 2019 16:39:14 +0100 Subject: [PATCH] Use a better check for ES6 detection --- api/js/login.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/js/login.js b/api/js/login.js index b613fd5354..53120cfaa5 100644 --- a/api/js/login.js +++ b/api/js/login.js @@ -17,7 +17,7 @@ egw_LAB.wait(function() { // check if the browser supports ES6 and try to warn user try { - Symbol(); + Function ("() => {};"); } catch (exception){ alert(egw.lang('Your browser is not new enough (JS ES6 compatible), you may experience some of the feautres not working.'));