diff --git a/js/colorbox.js b/js/colorbox.js index a8c4c873a02ee08c8be6e2159ae31c9dcab508ec..1ed6550c56f66edce32d6b39fad9b84afe099c8c 100644 --- a/js/colorbox.js +++ b/js/colorbox.js @@ -12,6 +12,7 @@ // Disable Colorbox for small screens. var mq = window.matchMedia('(max-device-width: ' + settings.colorbox.mobiledevicewidth + ')'); if (mq.matches) { + $.colorbox.remove(); return; } }