mirror of https://github.com/Fabio286/antares.git
fix: hotfix for Microsoft Store unauthorized process
This commit is contained in:
parent
71ac3a5164
commit
b3b698b3a2
|
@ -6,6 +6,7 @@ const isWindows = process.platform === 'win32';
|
||||||
const indexPath = path.resolve(__dirname, 'index.html').split(path.sep).join('/');
|
const indexPath = path.resolve(__dirname, 'index.html').split(path.sep).join('/');
|
||||||
|
|
||||||
export function validateSender (frame: WebFrameMain) {
|
export function validateSender (frame: WebFrameMain) {
|
||||||
|
if (process.windowsStore) return true; // TEMP HOTFIX
|
||||||
const frameUrl = new URL(frame.url);
|
const frameUrl = new URL(frame.url);
|
||||||
const prefix = isWindows ? 'file:///' : 'file://';
|
const prefix = isWindows ? 'file:///' : 'file://';
|
||||||
const framePath = frameUrl.href.replace(prefix, '');
|
const framePath = frameUrl.href.replace(prefix, '');
|
||||||
|
|
Loading…
Reference in New Issue