Skip to content

Commit fe0e088

Browse files
authored
Fix the window option (#185)
1 parent 691c307 commit fe0e088

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

index.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -377,9 +377,7 @@ export default function contextMenu(options = {}) {
377377
disposeMenu();
378378
};
379379

380-
if (win.once !== undefined) { // Support for BrowserView
381-
win.webContents.once('destroyed', disposable);
382-
}
380+
webContents(win).once('destroyed', disposable);
383381
};
384382

385383
const dispose = () => {

0 commit comments

Comments
 (0)