Use a better check for ES6 detection

This commit is contained in:
Hadi Nategh 2019-03-18 16:39:14 +01:00
parent d74a721294
commit 51b2e5f8cf

View File

@ -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.'));