From 28bdab8df41123e0ef5d706c2f860042e79f9d7c Mon Sep 17 00:00:00 2001 From: Oj Date: Sun, 30 Jan 2022 20:33:37 +0000 Subject: [PATCH] [Splash] Disable splashText by default --- README.md | 2 +- src/splash/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f958594..17c3931 100644 --- a/README.md +++ b/README.md @@ -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 - `autoupdate` (bool, default true) - whether to autoupdate OpenAsar after Discord startup - `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 - `multiInstance` (bool, default false) - whether to enable multi-instance diff --git a/src/splash/index.js b/src/splash/index.js index 96763ec..2384b0e 100644 --- a/src/splash/index.js +++ b/src/splash/index.js @@ -460,7 +460,7 @@ function launchSplashWindow(startMinimized) { splashWindow.webContents.insertCSS(JSON.parse(_fs.default.readFileSync(_path.default.join(paths.getUserData(), 'userDataCache.json'), 'utf8')).openasarSplashCSS); } catch (e) { } - if (oaConfig.splashText !== false) try { + if (oaConfig.splashText === true) try { const buildInfo = require('../utils/buildInfo.js'); splashWindow.webContents.executeJavaScript(`debug.textContent = '${buildInfo.releaseChannel} ${buildInfo.version}\\nOpenAsar ${oaVersion}'`); } catch (e) { }