fix: hotfix for Microsoft Store unauthorized process

This commit is contained in:
Fabio Di Stasio 2023-10-03 09:31:26 +02:00
parent 71ac3a5164
commit b3b698b3a2
1 changed files with 1 additions and 0 deletions

View File

@ -6,6 +6,7 @@ const isWindows = process.platform === 'win32';
const indexPath = path.resolve(__dirname, 'index.html').split(path.sep).join('/');
export function validateSender (frame: WebFrameMain) {
if (process.windowsStore) return true; // TEMP HOTFIX
const frameUrl = new URL(frame.url);
const prefix = isWindows ? 'file:///' : 'file://';
const framePath = frameUrl.href.replace(prefix, '');