mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-18 02:21:20 -08:00
rename DEFAULTS -> option
This commit is contained in:
1 parent
ccd167dd84
commit
e5ba6fcb95
4 files changed
+7
-9
No files matched your search
@@ -29,8 +29,7 @@ let id = 0;
|
||||
class Artplayer extends Emitter {
|
||||
constructor(option) {
|
||||
super();
|
||||
utils.errorHandle(typeof window.Promise === 'function', "Unsupported 'Promise' method");
|
||||
this.option = utils.mergeDeep(Artplayer.DEFAULTS, option);
|
||||
this.option = utils.mergeDeep(Artplayer.option, option);
|
||||
validator(this.option, scheme);
|
||||
this.init();
|
||||
// eslint-disable-next-line no-console
|
||||
@@ -74,7 +73,7 @@ class Artplayer extends Emitter {
|
||||
return validator.kindOf;
|
||||
}
|
||||
|
||||
static get DEFAULTS() {
|
||||
static get option() {
|
||||
return {
|
||||
container: '#artplayer',
|
||||
url: '',
|
||||
|
||||
Reference in new issue
Block a user