mirror of https://github.com/Fabio286/antares.git
refactor: temporary disable windows process validation
This commit is contained in:
parent
1ac816eaa9
commit
984aa893d3
|
@ -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, '');
|
||||
|
|
Loading…
Reference in New Issue