JavaScript error ,After closing the new window #647

Closed
opened 2026-01-29 16:45:06 +00:00 by claunia · 2 comments
Owner

Originally created by @sFireFrog on GitHub (Mar 24, 2021).

Electron.NET CLI and API :11.5.1
.NET Version:.net 5.0
Node.js Version: 14.16.0

  • Target: win

I already have the main window and create a new window. If I close the new window and then call up the development tool, an error will be reported.
image

Steps to Reproduce:

  1. Create a main window during initialization
  2. Use a button to create a new window
  3. Close the new window to call up the development tool
  4. If there is a jump page in the main window, an error will be reported every time you jump
Originally created by @sFireFrog on GitHub (Mar 24, 2021). Electron.NET CLI and API :11.5.1 .NET Version:.net 5.0 Node.js Version: 14.16.0 * **Target**: win I already have the main window and create a new window. If I close the new window and then call up the development tool, an error will be reported. ![image](https://user-images.githubusercontent.com/32626364/112306231-8f4ed700-8cda-11eb-9fb2-ac1607f9d697.png) Steps to Reproduce: 1. Create a main window during initialization 2. Use a button to create a new window 3. Close the new window to call up the development tool 4. If there is a jump page in the main window, an error will be reported every time you jump
claunia added the bug label 2026-01-29 16:45:06 +00:00
Author
Owner

@aschaefer94 commented on GitHub (Sep 3, 2021):

I am seeing this as well, but I'm seeing it when I reload the main window after closing the second window.

@aschaefer94 commented on GitHub (Sep 3, 2021): I am seeing this as well, but I'm seeing it when I reload the main window after closing the second window.
Author
Owner

@ortrails commented on GitHub (Sep 16, 2021):

Some info that might help https://stackoverflow.com/questions/44258831/only-hide-the-window-when-closing-it-electron
You can do this by setting Closable=false on the BrowserWindowOptions.

@ortrails commented on GitHub (Sep 16, 2021): Some info that might help https://stackoverflow.com/questions/44258831/only-hide-the-window-when-closing-it-electron You can do this by setting Closable=false on the BrowserWindowOptions.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#647