We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd9cd94 commit 5f8cd84Copy full SHA for 5f8cd84
fix-webm-duration.js
@@ -1,7 +1,7 @@
1
-(function (name, definition){
2
- if (typeof define === 'function'){ // AMD
+(function (name, definition) {
+ if (typeof define === 'function' && define.amd) { // RequireJS / AMD
3
define(definition);
4
- } else if (typeof module !== 'undefined' && module.exports) { // Node.js
+ } else if (typeof module !== 'undefined' && module.exports) { // CommonJS / Node.js
5
module.exports = definition();
6
} else { // Direct include
7
window.ysFixWebmDuration = definition();
0 commit comments