question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

reconfigureWindow can only overwrite top?

See original GitHub issue

I just looked into the source code and it looks like you added reconfigureWindow to the library. But unfortunately the only property you can overwrite is top? I have a small problem where I have one test that plays around with the different navigator language fields to language detection which I can not run since the language fields are Symbols and therefor read only.

Is there anything I can do to get my test running with the latest jsdom version? Or can you guys extend the reconfigureWindow functionality?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
domeniccommented, Nov 15, 2016

You want to change navigator.language? It’s configurable, so you can just change it:

Object.defineProperty(window.navigator, "language", {
  get() { return "ja-JP"; }
});
0reactions
fkrauthancommented, Nov 15, 2016

Ah ok makes sense. Even so I do not fully understand why one is configurable false and the other true while both to me should be readOnly and not changeable.

Thanks for all your help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to overwrite the existing Windows 10 installation with a ...
I would like to overwrite the corrupt Windows 10 installation with a fresh one, while keeping my files & folders intact.
Read more >
Change your Gmail settings - Android - Google Support
You can: Add an email signature Select which emails you're notified about Change other ... Note: Some Gmail settings can only be changed...
Read more >
How to Change Windows Update Settings (Windows 11, 10+)
How easy depends on how Windows Update is configured to download and ... how Windows updates are downloaded and installed should only take ......
Read more >
Use apps in Split View on Mac - Apple Support
Change sides: Use a window's title and toolbar to drag the window to the other ... have separate Spaces” option is turned on...
Read more >
Hate the Windows 11 Start Menu? Here's How to Change or ...
If you want to change anything, head to Settings > Personalization > Start, where you can tell Windows to stop showing recently installed ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found