X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=js%2F10-modal.js;h=eea85d7ac43e7a080aff36bd9164ea840071752b;hb=903884f77afb6ef2a1d842c20bb495aa76ee7a77;hp=9bf83ce71f634aad3bfb124fcba63962edb6a782;hpb=a66a1fe02efc1cdf7adfa606de00790b02b3ee72;p=plack-app-gruntmaster.git 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];