Update index.js

This commit is contained in:
Harvey Zack authored and GitHub committed 2019-04-20 06:20:31 +08:00
1 parent 1353ef0aaa
commit 7d7dec5d93
1 file changed
-4
-4
View File
@@ -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);