Lint fixes

This commit is contained in:
WardPearce
2026-02-17 20:36:41 +13:00
parent 48cfff7167
commit c36c1870a3
2 changed files with 4 additions and 4 deletions
@@ -46,7 +46,6 @@
} from '../store';
import { setStatusBarColor } from '../theme';
import { getVideoYTjs } from '$lib/api/youtubejs/video';
import { env } from '$env/dynamic/public';
import {
goToNextVideo,
goToPreviousVideo,
@@ -2,7 +2,6 @@ import { page } from '$app/state';
import { get } from 'svelte/store';
import { z } from 'zod';
import { env } from '$env/dynamic/public';
import { persistedStores } from './settings';
import { isOwnBackend } from '$lib/shared';
@@ -75,9 +74,11 @@ function setStores(toSet: Record<string, unknown>, overwriteExisting = false) {
}
export function loadSettingsFromEnv() {
if (typeof getPublicEnv('DEFAULT_SETTINGS') !== 'string') return;
const defaultSettings = getPublicEnv('DEFAULT_SETTINGS');
let raw = getPublicEnv('DEFAULT_SETTINGS');
if (typeof defaultSettings !== 'string') return;
let raw = defaultSettings;
// Docker wraps env vars in quotes
if (raw.startsWith('"')) raw = raw.slice(1);