Skip to content

No-Op in a worker #203

@jasonLaster

Description

@jasonLaster

Do you want to request a feature or report a bug?
bug

What is the current behavior?
Currently, addStyles errors when running in a worker context.

If the current behavior is a bug, please provide the steps to reproduce.

  1. add require("styles.css") to foo.js
  2. new Worker("foo.js")

What is the expected behavior?

addStyles is a no-op in the worker context and does not try to add the stylesheet.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions