Skip to content

Commit

Permalink
Merge pull request #2017 from trilitech/restrict-http-traffic
Browse files Browse the repository at this point in the history
Restrict http traffic
  • Loading branch information
serjonya-trili authored Oct 7, 2024
2 parents 9d2603b + daf9ba8 commit 3cd745d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions apps/desktop/public/electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,13 @@ function createWindow() {
}
});

mainWindow.webContents.session.webRequest.onBeforeRequest((details, callback) => {
if (details.url.startsWith("http://")) {
return callback({ cancel: true });
}
callback({});
});

protocol.handle(APP_PROTOCOL, async req => {
try {
const uri = new URL(decodeURI(req.url));
Expand Down

1 comment on commit 3cd745d

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Title Lines Statements Branches Functions
apps/desktop Coverage: 83%
83.63% (1768/2114) 78.81% (837/1062) 78.22% (449/574)
apps/web Coverage: 83%
83.63% (1768/2114) 78.81% (837/1062) 78.22% (449/574)
packages/components Coverage: 97%
97.17% (172/177) 95.12% (78/82) 85.41% (41/48)
packages/core Coverage: 81%
82.22% (222/270) 71.73% (99/138) 81.96% (50/61)
packages/crypto Coverage: 100%
100% (28/28) 100% (3/3) 100% (5/5)
packages/data-polling Coverage: 97%
95.27% (141/148) 87.5% (21/24) 92.85% (39/42)
packages/multisig Coverage: 98%
98.47% (129/131) 85.71% (18/21) 100% (35/35)
packages/social-auth Coverage: 100%
100% (21/21) 100% (11/11) 100% (3/3)
packages/state Coverage: 85%
84.61% (792/936) 80.97% (166/205) 78.72% (296/376)
packages/tezos Coverage: 86%
85.57% (89/104) 89.47% (17/19) 82.75% (24/29)
packages/tzkt Coverage: 86%
84.05% (58/69) 81.25% (13/16) 76.92% (30/39)

Please sign in to comment.