Skip to content

peerjs.min.js compiled with a function $(...) #989

@whoisterencelee

Description

@whoisterencelee

The dist/peerjs.min.js for some reason is compiled with a function $ which is global and gets into conflict with browser debugger's $ or any globally defined $

This causes this error whenever using $('someDOMselector') in site:

Uncaught TypeError: right-hand side of 'in' should be an object, got undefined``

Because it expect $(window) from this function, from webrtc-adapter dependency

export function shimGetDisplayMedia(window) { if (!('getDisplayMedia' in window.navigator)) { 

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions