Skip to content

Commit

Permalink
feat: fix context menu issue with duplicate extension initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
FormalSnake committed Dec 26, 2024
1 parent d81fe47 commit dee05c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -583,13 +583,13 @@ app.on('web-contents-created', async (e, contents) => {
contents.setVisualZoomLevelLimits(1, 4)

// Get or create extension handler for the session
let extensions = initializedExtensions.get(sharedSession.id)
let extensions = initializedExtensions.get('persist:webview')
if (!extensions) {
extensions = new ElectronChromeExtensions({
license: "GPL-3.0",
session: sharedSession
})
initializedExtensions.set(sharedSession.id, extensions)
initializedExtensions.set('persist:webview', extensions)
}

// Add the tab to extension handler
Expand Down

0 comments on commit dee05c0

Please sign in to comment.