remove art.once('video:loadedmetadata')

This commit is contained in:
Harvey committed 2022-05-18 11:29:05 +08:00
1 parent e225966202
commit f160d8eb61
10 files changed
+372 -396

No files matched your search

+3 -6
View File
@@ -11,15 +11,12 @@ export default class Contextmenu extends Component {
constructor(art) {
super(art);
this.art = art;
this.name = 'contextmenu';
this.$parent = art.template.$contextmenu;
art.once('video:loadedmetadata', () => {
if (!isMobile) {
this.init();
}
});
if (!isMobile) {
this.init();
}
}
init() {