Skip to content

Commit

Permalink
Merge branch 'develop' into 2444-fix-explorer-link-for-ethereum-network
Browse files Browse the repository at this point in the history
  • Loading branch information
Tuditi authored May 14, 2024
2 parents 0dcdc2c + 937b8ea commit 050851a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
8 changes: 2 additions & 6 deletions packages/desktop/lib/electron/processes/main.process.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,12 +257,8 @@ export function createMainWindow(): BrowserWindow {
/**
* Handle permissions requests
*/
session.defaultSession.setPermissionRequestHandler((_webContents, permission, cb, details) => {
if (permission === 'openExternal' && details && details.externalURL) {
return cb(true)
}

const permissionAllowlist = ['clipboard-read', 'notifications', 'fullscreen']
session.defaultSession.setPermissionRequestHandler((_webContents, permission, cb) => {
const permissionAllowlist = ['clipboard-read', 'notifications', 'fullscreen', 'openExternal']

return cb(permissionAllowlist.indexOf(permission) > -1)
})
Expand Down
2 changes: 1 addition & 1 deletion packages/desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"copy-webpack-plugin": "12.0.2",
"cross-env": "7.0.3",
"css-loader": "7.1.1",
"electron": "29.2.0",
"electron": "30.0.3",
"electron-builder": "24.13.3",
"@electron/notarize": "2.3.0",
"esbuild": "0.20.2",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5103,10 +5103,10 @@ [email protected]:
semver "^7.3.8"
tiny-typed-emitter "^2.1.0"

electron@29.2.0:
version "29.2.0"
resolved "https://registry.yarnpkg.com/electron/-/electron-29.2.0.tgz#98e9d45dcebda124fb0bd1ff20fc509ec692101c"
integrity sha512-ALKrCN52RG4g9prx4DriXSPnY5WoiyRUCNp7zEVQuoiNOpHTNqMMpRidQAHzntV4hajF1LMWHVoBkwqIs1jHhg==
electron@30.0.3:
version "30.0.3"
resolved "https://registry.yarnpkg.com/electron/-/electron-30.0.3.tgz#7c25ddb12ba89fd117991d010f1b274b1bafcb73"
integrity sha512-h+suwx6e0fnv/9wi0/cmCMtG+4LrPzJZa+3DEEpxcPcP+pcWnBI70t8QspxgMNIh2wzXLMD9XVqrLkEbiBAInw==
dependencies:
"@electron/get" "^2.0.0"
"@types/node" "^20.9.0"
Expand Down

0 comments on commit 050851a

Please sign in to comment.