Skip to content

[http-user-agent] Avoid using "new Function" to check browser environment #479

@emmenko

Description

@emmenko

Description

Using new Function is considered harmful and is blocked by CSP.

Since we are using it to check if the code runs on nodejs or browser, can find a better solution, thus allowing CSP to be happy about it.

Metadata

Metadata

Assignees

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