README: npm --save

This commit is contained in:
DIYgod 2016-04-22 18:05:51 +08:00
parent a9c456bdb6
commit 2af86eca50
No known key found for this signature in database
GPG Key ID: F8797DD1088C6506
2 changed files with 8 additions and 8 deletions

View File

@ -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)
MIT © [DIYgod](http://github.com/DIYgod)

View File

@ -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);