Fix javaScript error screen.orientation.lock is not available

This commit is contained in:
Hadi Nategh 2016-06-14 17:31:33 +02:00
parent f9a490aea5
commit 4b43cd89d2

View File

@ -16,7 +16,7 @@ egw_LAB.wait(function()
jQuery(document).ready(function() jQuery(document).ready(function()
{ {
// lock the device orientation in portrait view // lock the device orientation in portrait view
if (screen.orientation) screen.orientation.lock('portrait'); if (screen.orientation && typeof screen.orientation.lock == 'function') screen.orientation.lock('portrait');
function do_social(_data) function do_social(_data)
{ {