添加手机白名单

This commit is contained in:
Harvey Zack committed 2018-11-27 09:35:34 +08:00
1 parent ae8a916118
commit df9fab27eb
7 files changed
+103 -14

No files matched your search

+7
View File
@@ -6,6 +6,7 @@ import merge from 'deepmerge';
import * as utils from './utils';
import scheme from './scheme';
import config from './config';
import Whitelist from './whitelist';
import Template from './template';
import I18n from './i18n';
import Player from './player';
@@ -37,6 +38,10 @@ class Artplayer extends Emitter {
return '__VERSION__';
}
static get env() {
return '__ENV__';
}
static get config() {
return config;
}
@@ -76,6 +81,7 @@ class Artplayer extends Emitter {
controls: [],
highlight: [],
plugins: [],
whitelist: [],
thumbnails: {
url: '',
number: 60,
@@ -115,6 +121,7 @@ class Artplayer extends Emitter {
utils.errorHandle(false, 'Cannot mount multiple instances on the same dom element');
}
this.whitelist = new Whitelist(this);
this.template = new Template(this);
this.storage = new Storage(this);
this.i18n = new I18n(this);