Skip to content

Commit

Permalink
Fix the window option (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
quanglam2807 authored Aug 29, 2024
1 parent 691c307 commit fe0e088
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,7 @@ export default function contextMenu(options = {}) {
disposeMenu();
};

if (win.once !== undefined) { // Support for BrowserView
win.webContents.once('destroyed', disposable);
}
webContents(win).once('destroyed', disposable);
};

const dispose = () => {
Expand Down

0 comments on commit fe0e088

Please sign in to comment.