mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-16 17:46:17 -08:00
update
This commit is contained in:
1 parent
d276c22f9c
commit
5f6febce42
6 files changed
+65
-22
No files matched your search
+7
-3
@@ -78,9 +78,13 @@ class Artplayer extends Emitter {
|
||||
init() {
|
||||
this.focus = false;
|
||||
this.playing = false;
|
||||
this.refs = {
|
||||
$container: this.option.container
|
||||
};
|
||||
this.refs = {};
|
||||
|
||||
if (this.option.container instanceof Element) {
|
||||
this.refs.$container = this.option.container;
|
||||
} else {
|
||||
this.refs.$container = document.querySelector(this.option.container);
|
||||
}
|
||||
|
||||
this.template = new Template(this);
|
||||
this.i18n = new I18n(this);
|
||||
|
||||
Reference in new issue
Block a user