This commit is contained in:
Sam Potts
2016-08-06 11:08:33 +10:00
2 changed files with 12 additions and 4 deletions

View File

@ -16,7 +16,7 @@
module.exports = factory(root, document);
} else if (typeof define === 'function' && define.amd) {
// AMD
define(null, function() { factory(root, document) });
define([], function () { return factory(root, document); });
} else {
// Browser globals (root is window)
root.plyr = factory(root, document);