update ads.js

This commit is contained in:
Harvey committed 2021-12-23 16:46:24 +08:00
1 parent 75baca8462
commit 3859c544c8
4 files changed
+7 -6

No files matched your search

+2 -2
View File
@@ -26,8 +26,8 @@ export default class Ads {
return this.art.option.ads[this.index + 1];
}
play(item) {
if (this.isEnd || !item.url) return;
play(item = {}) {
if (this.isEnd) return;
this.art.player.switchUrl(item.url);
this.art.once('video:timeupdate', () => {