1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-08 05:57:02 +09:00

JS-177: remove filesystem exposure in Electron preload.js

This commit is contained in:
Andrew Simachev 2022-08-02 12:25:15 +03:00
parent eaad93c751
commit d032fe71a3
6 changed files with 41 additions and 81 deletions

View file

@ -212,9 +212,6 @@ app.on('open-url', (e, url) => {
app.on('certificate-error', (e, webContents, url, error, certificate, callback) => {
const u = new URL(url);
console.log(url, u);
if ([ '127.0.0.1', 'localhost' ].includes(u.hostname)) {
e.preventDefault();
callback(true);