mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 00:58:55 +01:00
Warn user about the JS ES6 compatibility
This commit is contained in:
parent
2126fca1b4
commit
d74a721294
@ -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 (){
|
||||
|
Loading…
Reference in New Issue
Block a user