[Splash] Add splashText config

This commit is contained in:
Ducko 2021-12-17 14:42:11 +00:00
parent 78a4df22f4
commit a4280d4562
3 changed files with 4 additions and 1 deletions

View file

@ -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}

View file

@ -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})`);
}