Warn user about the JS ES6 compatibility

This commit is contained in:
Hadi Nategh 2019-03-18 16:32:06 +01:00
parent 2126fca1b4
commit d74a721294

View File

@ -15,6 +15,14 @@ egw_LAB.wait(function()
{
jQuery(document).ready(function()
{
// check if the browser supports ES6 and try to warn user
try {
Symbol();
}
catch (exception){
alert(egw.lang('Your browser is not new enough (JS ES6 compatible), you may experience some of the feautres not working.'));
}
// lock the device orientation in portrait view
if (screen.orientation && typeof screen.orientation.lock == 'function') screen.orientation.lock('portrait');
jQuery('.closeBtn').click(function (){