Thanks to visit codestin.com
Credit goes to github.com

Skip to content

navigator.languages returns an empty array #11053

@kysely

Description

@kysely
  • Electron version: 1.7.9
  • Operating system: macOS

Expected behavior

navigator.languages should return array of user's preferred languages, e.g. ["en-US", "zh-CN", "ja-JP"]

Actual behavior

navigator.languages returns an empty array []

How to reproduce

Create a primitive HTML file that logs navigator.languages into console. Then try loading via file://, http and inside Electron's renderer process. The first two will give you actual results while renderer yields empty array.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions