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 -5
View File
@@ -5,11 +5,9 @@ export default class Hotkey {
this.art = art;
this.keys = {};
art.once('video:loadedmetadata', () => {
if (art.option.hotkey && !isMobile) {
this.init();
}
});
if (art.option.hotkey && !isMobile) {
this.init();
}
}
init() {