[Splash] Add splashText config
This commit is contained in:
parent
78a4df22f4
commit
a4280d4562
3 changed files with 4 additions and 1 deletions
|
@ -20,6 +20,8 @@ contextBridge.exposeInMainWorld('DiscordSplash', {
|
|||
quitDiscord: () => ipcRenderer.send('DISCORD_SPLASH_SCREEN_QUIT'),
|
||||
|
||||
getDebugInfo: () => {
|
||||
if (urlParams.get('oaSplashText') === 'false') return '';
|
||||
|
||||
const buildInfo = require('../utils/buildInfo');
|
||||
|
||||
return `${buildInfo.releaseChannel} ${buildInfo.version}
|
||||
|
|
|
@ -493,7 +493,7 @@ function launchSplashWindow(startMinimized) {
|
|||
log('Splash', 'Failed to inject splash CSS');
|
||||
}
|
||||
|
||||
splashWindow.loadURL(splashUrl + '?oaVersion=' + global.oaVersion + '&oaThemeSync=' + oaConfig.themeSync);
|
||||
splashWindow.loadURL(splashUrl + '?oaVersion=' + global.oaVersion + '&oaThemeSync=' + oaConfig.themeSync + '&oaSplashText' + oaConfig.splashText);
|
||||
|
||||
log('Splash', `Loading window (with url ${splashUrl})`);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue