From d2c3c7375fc51d636a536a98d80a3167da3d2200 Mon Sep 17 00:00:00 2001 From: Florent BENOIT Date: Wed, 28 Aug 2024 19:07:46 +0200 Subject: [PATCH] Fix cleaning up window (#183) --- index.js | 1 - 1 file changed, 1 deletion(-) diff --git a/index.js b/index.js index 979b8a1..3393445 100644 --- a/index.js +++ b/index.js @@ -374,7 +374,6 @@ export default function contextMenu(options = {}) { const disposeMenu = create(win, options); const disposable = () => { - win.webContents.off('destroyed', disposable); disposeMenu(); };