Skip to content

Need to fix for Node #295

Description

@jonniespratley
$  babel-node ./scripts/start.js   
/Users/jspratle/Github/sdk-component-adapter/src/utils.js:128
const isSpeakerSupported = !!document.createElement('audio').setSinkId;
                           ^

ReferenceError: document is not defined
    at Object.<anonymous> (/Users/jspratle/Github/sdk-component-adapter/src/utils.js:119:35)

Need to fix the conditional to handle when running in NodeJS

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions