added condition

Signed-off-by: heyhiru <hirentimbadiya74@gmail.com>
Este commit está contenido en:
heyhiru
2023-11-17 10:20:14 +05:30
padre 5b90b18788
commit c69de40b55

Ver fichero

@@ -1,6 +1,6 @@
class PeerService {
constructor() {
if (!this.peer) {
if (typeof window !== 'undefined' && !this.peer) {
this.peer = new RTCPeerConnection({
iceServers: [{
urls: [