[Splash] Disable splashText by default

This commit is contained in:
Ducko 2022-01-30 20:33:37 +00:00
parent b73ba369f9
commit 28bdab8df4
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ You can configure OpenAsar via `settings.json` (found in your Discord app data /
- `themeSync` (bool, default true) - syncs your modded client's theme with splash theming - `themeSync` (bool, default true) - syncs your modded client's theme with splash theming
- `autoupdate` (bool, default true) - whether to autoupdate OpenAsar after Discord startup - `autoupdate` (bool, default true) - whether to autoupdate OpenAsar after Discord startup
- `updatePrompt` (bool, default false) - whether to show update prompt after updating OpenAsar - `updatePrompt` (bool, default false) - whether to show update prompt after updating OpenAsar
- `splashText` (bool, default true) - whether to show bottom right version info text in splash - `splashText` (bool, default false) - whether to show bottom right version info text in splash
### Extra Discord Options ### Extra Discord Options
- `multiInstance` (bool, default false) - whether to enable multi-instance - `multiInstance` (bool, default false) - whether to enable multi-instance

View File

@ -460,7 +460,7 @@ function launchSplashWindow(startMinimized) {
splashWindow.webContents.insertCSS(JSON.parse(_fs.default.readFileSync(_path.default.join(paths.getUserData(), 'userDataCache.json'), 'utf8')).openasarSplashCSS); splashWindow.webContents.insertCSS(JSON.parse(_fs.default.readFileSync(_path.default.join(paths.getUserData(), 'userDataCache.json'), 'utf8')).openasarSplashCSS);
} catch (e) { } } catch (e) { }
if (oaConfig.splashText !== false) try { if (oaConfig.splashText === true) try {
const buildInfo = require('../utils/buildInfo.js'); const buildInfo = require('../utils/buildInfo.js');
splashWindow.webContents.executeJavaScript(`debug.textContent = '${buildInfo.releaseChannel} ${buildInfo.version}\\nOpenAsar ${oaVersion}'`); splashWindow.webContents.executeJavaScript(`debug.textContent = '${buildInfo.releaseChannel} ${buildInfo.version}\\nOpenAsar ${oaVersion}'`);
} catch (e) { } } catch (e) { }