[Splash] Add splashText config
This commit is contained in:
parent
78a4df22f4
commit
a4280d4562
|
@ -33,6 +33,7 @@ You can configure OpenAsar via `settings.json` (found in your Discord app data /
|
|||
- `autoupdate` (bool, default true) - whether to autoupdate OpenAsar after Discord startup
|
||||
- `multiInstance` (bool, default false) - whether to enable multi-instance
|
||||
- `ssoeAllowlist` (bool, default true) - whether to use safer custom method of opening external urls (true) or normal Discord's method (false)
|
||||
- `splashText` (bool, default true) - whether to show bottom right version info text in splash
|
||||
- `skipStartupUpdateChecks` (bool, default false) - skips startup update checking (Linux-only)
|
||||
|
||||
An example of a settings.json with OpenAsar config:
|
||||
|
|
|
@ -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…
Reference in New Issue