Add logging to help diagnose protocol handler false positives
This commit is contained in:
parent
816228fde0
commit
fba8e8d479
1 changed files with 3 additions and 1 deletions
|
@ -31,7 +31,9 @@ function _createFileHandler({ userDataPath, installPath, isWindows }) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!target.startsWith(userDataPath) && !target.startsWith(installPath)) {
|
if (!target.startsWith(userDataPath) && !target.startsWith(installPath)) {
|
||||||
console.log(`Warning: denying request to path '${target}'`);
|
console.log(
|
||||||
|
`Warning: denying request to path '${target}' (userDataPath: '${userDataPath}', installPath: '${installPath}')`
|
||||||
|
);
|
||||||
return callback();
|
return callback();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue