mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-26 11:56:25 -08:00
fix test
This commit is contained in:
2 files changed
+3
-1
No files matched your search
@@ -9,6 +9,7 @@ const settings = {
|
||||
saturationLevel: 100,
|
||||
underlineLinks: false,
|
||||
reducedMotion: false,
|
||||
themeRemoteEnabledTweakFullUrls: [] as string[],
|
||||
};
|
||||
|
||||
let systemThemeKind = ThemeKind.Light;
|
||||
@@ -68,6 +69,7 @@ beforeEach(() => {
|
||||
settings.saturationLevel = 100;
|
||||
settings.underlineLinks = false;
|
||||
settings.reducedMotion = false;
|
||||
settings.themeRemoteEnabledTweakFullUrls = [];
|
||||
document.body.className = '';
|
||||
document.body.style.filter = '';
|
||||
});
|
||||
|
||||
@@ -118,7 +118,7 @@ export function AuthRouteThemeManager({ children }: { children: ReactNode }) {
|
||||
}, [activeTheme.remoteFullUrl]);
|
||||
|
||||
useEffect(() => {
|
||||
const urls = enabledTweakUrls.filter((u) => u.trim().length > 0);
|
||||
const urls = (enabledTweakUrls ?? []).filter((u) => u.trim().length > 0);
|
||||
let cancelled = false;
|
||||
|
||||
if (urls.length === 0) {
|
||||
|
||||
Reference in new issue
Block a user