X-Git-Url: http://git.ieval.ro/?p=plack-app-gruntmaster.git;a=blobdiff_plain;f=js%2F10-modal.js;h=eea85d7ac43e7a080aff36bd9164ea840071752b;hp=9bf83ce71f634aad3bfb124fcba63962edb6a782;hb=4aff66acc3f3830f255711563a27726c225a22c1;hpb=137c84bfb99e603c4eddcad9f95c228e50d94024 diff --git a/js/10-modal.js b/js/10-modal.js index 9bf83ce..eea85d7 100644 --- a/js/10-modal.js +++ b/js/10-modal.js @@ -13,7 +13,7 @@ function hide_modal () { } $(function() { - if(window.innerWidth < 768) + if(document.documentElement.clientWidth) return; modal = $('.modal')[0]; backdrop = $('.backdrop')[0];