From 86036d9ceb9211f88577db85d85ced7097918abd Mon Sep 17 00:00:00 2001 From: Rezmason Date: Fri, 16 Sep 2022 21:37:30 -0700 Subject: [PATCH] The cursor color, when unspecified, now defaults to bright white if an effect is specified, rather than falling back on the colors from the versions --- js/config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/config.js b/js/config.js index 4f0261d..8bebc52 100644 --- a/js/config.js +++ b/js/config.js @@ -321,6 +321,10 @@ export default (urlParams) => { .filter(([_, value]) => value != null) ); + if (validParams.effect != null && validParams.cursorColor == null) { + validParams.cursorColor = [2, 2, 2]; + } + const version = validParams.version in versions ? versions[validParams.version] : versions.classic; const fontName = [validParams.font, version.font, defaults.font].find((name) => name in fonts); const font = fonts[fontName];