This commit is contained in:
2025-01-04 00:34:03 +01:00
parent 41829408dc
commit 0ca14bbc19
18111 changed files with 1871397 additions and 0 deletions

15
resources/app/node_modules/get-browser-rtc/index.js generated vendored Normal file
View File

@@ -0,0 +1,15 @@
// originally pulled out of simple-peer
module.exports = function getBrowserRTC () {
if (typeof globalThis === 'undefined') return null
var wrtc = {
RTCPeerConnection: globalThis.RTCPeerConnection || globalThis.mozRTCPeerConnection ||
globalThis.webkitRTCPeerConnection,
RTCSessionDescription: globalThis.RTCSessionDescription ||
globalThis.mozRTCSessionDescription || globalThis.webkitRTCSessionDescription,
RTCIceCandidate: globalThis.RTCIceCandidate || globalThis.mozRTCIceCandidate ||
globalThis.webkitRTCIceCandidate
}
if (!wrtc.RTCPeerConnection) return null
return wrtc
}

View File

@@ -0,0 +1,13 @@
{
"name": "get-browser-rtc",
"version": "1.1.0",
"description": "get webrtc browser methods unprefixed",
"main": "index.js",
"repository": {
"type": "git",
"url": "git://github.com/substack/get-browser-rtc.git"
},
"author": "substack",
"license": "MIT",
"homepage": "https://github.com/substack/get-browser-rtc#readme"
}