-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Describe the bug
Getting an error which doesn't seem to affect anything, however does cause a stutter.
Attempting to call a function in a renderer window that has been closed or released.
Function provided here: Titlebar.registerListeners (C:**\node_modules@treverix\custom-electron-titlebar\dist\titlebar.js:110:26
The error originates from here:
custom-electron-titlebar/src/titlebar.ts
Line 131 in 5c59a6d
this.currentWindow.on(k as any, this.events[k]); |
To Reproduce
Steps to reproduce the behavior:
- Launch Electron
- Happens immediately and appears in the console
Expected behavior
Error shouldnt happen, its likely the handle for the current window is not removing listeners, maybe missing an event to removeListeners.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: Windows
- Electron version: 16.0.4
- Node Version: 14.18.1