Update attachUrlMix.js

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