-
Notifications
You must be signed in to change notification settings - Fork 180
Open
Description
If installed on a NodeJS server, this gives an error of window undefined.
There is a simple fix to it (if this does not get merged, as it seems to be inactive repo)
- Use my fork to install using any of the following commands
yarn add bnap00/socket.io-p2p
npm install bnap00/socket.io-p2p
- Create a fork of the repo and add the following lines to the
index.js
if(window){
if ('undefined' != typeof window) {
window.myDebug = require('debug')
}
- Or just go to your nodemodules and add the above line(not recommended at all, good for testing purposes)
Strernd, W4G1 and y4my4my4m
Metadata
Metadata
Assignees
Labels
No labels