diff --git a/README.md b/README.md index a83b3a0..19d4a3e 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Screenshot ## Install ``` -$ npm install aplayer +$ npm install aplayer --save ``` ## CDN @@ -197,4 +197,4 @@ $ npm run build ## LICENSE -MIT © [DIYgod](http://github.com/DIYgod) \ No newline at end of file +MIT © [DIYgod](http://github.com/DIYgod) diff --git a/src/APlayer.js b/src/APlayer.js index 71863b6..f338658 100644 --- a/src/APlayer.js +++ b/src/APlayer.js @@ -1,13 +1,13 @@ -/** - * APlayer constructor function - * - * @param {Object} option - See README - * @constructor - */ (() => { let APlayers = []; class APlayer { + /** + * APlayer constructor function + * + * @param {Object} option - See README + * @constructor + */ constructor(option) { this.isMobile = navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)|(android)|(webOS)/i);