Use document.documentElement.clientWidth instead of window.innerWidth
[plack-app-gruntmaster.git] / js / 10-modal.js
index 9bf83ce71f634aad3bfb124fcba63962edb6a782..eea85d7ac43e7a080aff36bd9164ea840071752b 100644 (file)
@@ -13,7 +13,7 @@ function hide_modal () {
 }
 
 $(function() {
-       if(window.innerWidth < 768)
+       if(document.documentElement.clientWidth)
                return;
        modal = $('.modal')[0];
        backdrop = $('.backdrop')[0];
This page took 0.010146 seconds and 4 git commands to generate.