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'); } /**