mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-18 10:41:20 -08:00
Update index.js
This commit is contained in:
1 parent
1353ef0aaa
commit
7d7dec5d93
1 file changed
-4
@@ -28,10 +28,6 @@ let id = 0;
|
||||
class Artplayer extends Emitter {
|
||||
constructor(option) {
|
||||
super();
|
||||
utils.errorHandle(
|
||||
this instanceof Artplayer,
|
||||
'Artplayer is a constructor and should be called with the `new` keyword',
|
||||
);
|
||||
utils.errorHandle(typeof window.Promise === 'function', "Unsupported 'Promise' method");
|
||||
this.option = utils.mergeDeep(Artplayer.DEFAULTS, option);
|
||||
optionValidator(this.option, scheme);
|
||||
|
||||
Reference in new issue
Block a user