Skip to content

global.WebSocket throws in some eviroments #45

@zalmoxisus

Description

@zalmoxisus

As you see from zalmoxisus/remote-redux-devtools#6, sometimes either babel or react-native packager adds 'use strict'; to the dependencies, and this makes global to be undefined.

Maybe in browser.js instead of var WebSocket = global.WebSocket || global.MozWebSocket, we could use var WebSocket = this.WebSocket || global.WebSocket || global.MozWebSocket as @mlabrum suggested?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions