From b93e759ba694d5f27c31765fde683eb7f5a8a8b6 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Wed, 14 Aug 2019 15:15:45 +0300 Subject: [PATCH] fix(view) getMediaElement: play video/audio --- client/modules/view.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/client/modules/view.js b/client/modules/view.js index 00120ee9..75043da8 100644 --- a/client/modules/view.js +++ b/client/modules/view.js @@ -296,12 +296,9 @@ async function getMediaElement(src) { return [null, element]; } -function check(src, callback) { +function check(src) { if (typeof src !== 'string') throw Error('src should be a string!'); - - if (typeof callback !== 'function') - throw Error('callback should be a function'); } /**