Improve this logic

This commit is contained in:
Lncvrt committed 2026-04-30 20:43:01 -07:00
1 parent 5226ce4a62
commit 7c519bf8eb
1 file changed
+1 -12
+1 -12
View File
@@ -353,18 +353,7 @@ export default function RootLayout ({
if ( if (
raw.settings && raw.settings &&
raw.settings.theme && raw.settings.theme &&
(raw.version == '1.0.0' || semver.satisfies(raw.version, '>=1.0.0 <=1.5.4')
raw.version == '1.1.0' ||
raw.version == '1.1.1' ||
raw.version == '1.2.0' ||
raw.version == '1.3.0' ||
raw.version == '1.3.1' ||
raw.version == '1.4.0' ||
raw.version == '1.5.0' ||
raw.version == '1.5.1' ||
raw.version == '1.5.2' ||
raw.version == '1.5.3' ||
raw.version == '1.5.4')
) { ) {
const parsed = Number(raw.settings.theme) const parsed = Number(raw.settings.theme)
if (parsed == 3) raw.settings.theme = 2 if (parsed == 3) raw.settings.theme = 2