JavaScript error when accessing app window object #502

Open
opened 2026-01-29 16:41:20 +00:00 by claunia · 0 comments
Owner

Originally created by @Velorien on GitHub (May 29, 2020).

Originally assigned to: @GregorBiswanger on GitHub.

  • Version:
    API and CLI 8.31.2 on .NET Core 3.1

  • Target:
    Windows and Mac

Steps to Reproduce:

As per my client's report, they have left the application runnning for a longer while and then made an action that caused the following code to run:

var window = Electron.WindowManager.BrowserWindows.FirstOrDefault();
window.SetAlwaysOnTop(true);
window.Restore();
window.SetAlwaysOnTop(false);

The following message appeared:
image

I've also seen these errors occur right after the application started, but I couldn't quite pin down their source. Is this somehow related to #381 ? I've never seen this happen when I electronize start the application. Please let me know if there's anything I can do to help resolve this issue.

Originally created by @Velorien on GitHub (May 29, 2020). Originally assigned to: @GregorBiswanger on GitHub. * **Version**: API and CLI 8.31.2 on .NET Core 3.1 * **Target**: Windows and Mac Steps to Reproduce: As per my client's report, they have left the application runnning for a longer while and then made an action that caused the following code to run: ``` csharp var window = Electron.WindowManager.BrowserWindows.FirstOrDefault(); window.SetAlwaysOnTop(true); window.Restore(); window.SetAlwaysOnTop(false); ``` The following message appeared: ![image](https://user-images.githubusercontent.com/3647931/83240625-f45c9d80-a199-11ea-80d4-93df6f5e7547.png) I've also seen these errors occur right after the application started, but I couldn't quite pin down their source. Is this somehow related to #381 ? I've never seen this happen when I `electronize start` the application. Please let me know if there's anything I can do to help resolve this issue.
claunia added the bug label 2026-01-29 16:41:20 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#502