|
|
@ -48,7 +48,7 @@ const electronExports = new Proxy(electron, {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
delete require.cache[electronPath].exports;
|
|
|
|
delete require.cache[electronPath].exports;
|
|
|
|
require.cache[electronPath].exports = electronExports;
|
|
|
|
require.cache[electronPath].exports = { ...electron, BrowserWindow: PatchedBrowserWindow };
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Register our protocol sceheme with elevated privileges.
|
|
|
|
* Register our protocol sceheme with elevated privileges.
|
|
|
|