README: npm --save

This commit is contained in:
DIYgod
2016-04-22 18:05:51 +08:00
parent a9c456bdb6
commit 2af86eca50
2 changed files with 8 additions and 8 deletions
+2 -2
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)
+6 -6
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);