mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
Fix #1991 add shim for Modernizr to accommodate old addons that rely on it
This commit is contained in:
parent
89f8a77ecb
commit
7058f9fa85
1 changed files with 14 additions and 0 deletions
|
|
@ -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() */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue