Check for module.exports as well for CommonJS Modules
This commit is contained in:
parent
4fda65c862
commit
a285fcc4ec
4
dist/plyr.js
vendored
4
dist/plyr.js
vendored
File diff suppressed because one or more lines are too long
@ -11,7 +11,7 @@
|
||||
'use strict';
|
||||
/*global define,module*/
|
||||
|
||||
if (typeof module === 'object') {
|
||||
if (typeof module === 'object' && typeof module.exports === 'object') {
|
||||
// Node, CommonJS-like
|
||||
module.exports = factory(root, document);
|
||||
} else if (typeof define === 'function' && define.amd) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user