diff --git a/common/js/common.js b/common/js/common.js index 7de40a712..3d9547fc6 100644 --- a/common/js/common.js +++ b/common/js/common.js @@ -304,6 +304,20 @@ } }; + /** + * Shim for Modernizr if it is not loaded + */ + window.Modernizr = { + audio: true, + video: true, + canvas: true, + history: true, + postmessage: true, + geolocation: ('geolocation' in navigator), + touch: ('ontouchstart' in window) || (navigator.maxTouchPoints > 0), + webgl: !!window.WebGLRenderingContext + }; + })(jQuery); /* jQuery(document).ready() */