[READ-ONLY] a fast, modern browser for the npm registry
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: type prehydrate settings as AppSettings (#1430)

authored by

ls-root and committed by
GitHub
97f0582a 3d06131f

+3 -1
+3 -1
app/utils/prehydrate.ts
··· 16 16 const validPMs = new Set(['npm', 'pnpm', 'yarn', 'bun', 'deno', 'vlt']) 17 17 18 18 // Read settings from localStorage 19 - const settings = JSON.parse(localStorage.getItem('npmx-settings') || '{}') 19 + const settings = JSON.parse( 20 + localStorage.getItem('npmx-settings') || '{}', 21 + ) as Partial<AppSettings> 20 22 21 23 const accentColorId = settings.accentColorId 22 24 if (accentColorId && accentColorIds.has(accentColorId)) {