README: npm --save
This commit is contained in:
parent
a9c456bdb6
commit
2af86eca50
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue