Update attachUrlMix.js

This commit is contained in:
Harvey Zack authored and GitHub committed 2018-11-24 17:18:03 +08:00
1 parent be923b2a70
commit c397bb7f81
1 file changed
+3 -3
@@ -13,13 +13,13 @@ export default function attachUrlMix(art, player) {
value: url => {
const typeCallback = customType[type];
if (type && typeCallback) {
art.emit('beforeCustomType', url);
art.emit('beforeCustomType');
typeCallback($video, player.returnUrl(url), art);
art.emit('afterCustomType', url);
art.emit('afterCustomType');
} else {
art.emit('beforeAttachUrl', url);
$video.src = player.returnUrl(url);
art.emit('afterAttachUrl', url);
art.emit('afterAttachUrl', $video.src);
}
},
});