[Bootstrap] Add commented experimental code
This commit is contained in:
parent
4c535cfb89
commit
d09ce4a3d2
1 changed files with 9 additions and 0 deletions
9
src/bootstrap.js
vendored
9
src/bootstrap.js
vendored
|
@ -38,6 +38,15 @@ const startCore = () => {
|
||||||
desktopCore = requireNative('discord_desktop_core');
|
desktopCore = requireNative('discord_desktop_core');
|
||||||
log('Bootstrap', 'Required desktop_core:', desktopCore);
|
log('Bootstrap', 'Required desktop_core:', desktopCore);
|
||||||
|
|
||||||
|
/* const electronPath = require.resolve('electron'); // Patch webapp host version to suffix -openasar
|
||||||
|
const originalVersion = require.cache[electronPath].exports.app.getVersion();
|
||||||
|
require.cache[electronPath].exports.app.getVersion = function() {
|
||||||
|
const inDiscordNative = (new Error()).stack.includes('discord_native');
|
||||||
|
if (!inDiscordNative) return originalVersion;
|
||||||
|
|
||||||
|
return originalVersion + '-openasar';
|
||||||
|
}; */
|
||||||
|
|
||||||
desktopCore.startup({
|
desktopCore.startup({
|
||||||
paths,
|
paths,
|
||||||
splashScreen,
|
splashScreen,
|
||||||
|
|
Loading…
Reference in a new issue