mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 08:23:12 +01:00
Use a better check for ES6 detection
This commit is contained in:
parent
d74a721294
commit
51b2e5f8cf
@ -17,7 +17,7 @@ egw_LAB.wait(function()
|
|||||||
{
|
{
|
||||||
// check if the browser supports ES6 and try to warn user
|
// check if the browser supports ES6 and try to warn user
|
||||||
try {
|
try {
|
||||||
Symbol();
|
Function ("() => {};");
|
||||||
}
|
}
|
||||||
catch (exception){
|
catch (exception){
|
||||||
alert(egw.lang('Your browser is not new enough (JS ES6 compatible), you may experience some of the feautres not working.'));
|
alert(egw.lang('Your browser is not new enough (JS ES6 compatible), you may experience some of the feautres not working.'));
|
||||||
|
Loading…
Reference in New Issue
Block a user