refactor: temporary disable windows process validation

This commit is contained in:
Fabio Di Stasio 2023-11-24 10:18:44 +01:00
parent 1ac816eaa9
commit 984aa893d3
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +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
if (isWindows) return true; // TEMP HOTFIX
const frameUrl = new URL(frame.url);
const prefix = isWindows ? 'file:///' : 'file://';
const framePath = frameUrl.href.replace(prefix, '');