MCPcopy Index your code
hub / github.com/ShareDropio/sharedrop / checkWebRTCSupport

Function checkWebRTCSupport

app/initializers/prerequisites.js:10–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8
9export function initialize(application) {
10 function checkWebRTCSupport() {
11 return new Promise((resolve, reject) => {
12 // window.util is a part of PeerJS library
13 if (window.util.supports.sctp) {
14 resolve();
15 } else {
16 // eslint-disable-next-line prefer-promise-reject-errors
17 reject('browser-unsupported');
18 }
19 });
20 }
21
22 function clearFileSystem() {
23 return new Promise((resolve, reject) => {

Callers 1

initializeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected