UNPKG

webrtc-test-suite

Version:

Testing webRTC capabilities by trying to use them. Not a feature detector. A capability tester.Also packs some utilities to make developer's live easier while making webRTC tools.

12 lines 266 B
export default function(_promise){ return new Promise(resolve=>{ try{ _promise .then(result=>resolve(result)) .catch(()=>resolve(null)); } catch(e){ resolve(null); } }) }