()
| 8 | |
| 9 | export 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) => { |