Remove console.log

pull/2116/head
Jérémy Rialland 2022-04-25 14:47:17 +02:00 committed by Jérémy Rialland
parent 704399e719
commit ade31150a0
1 changed files with 2 additions and 3 deletions

View File

@ -24,8 +24,8 @@ const PALETTE = {
const rawIframeColor = new URLSearchParams(
import.meta.env.SSR ? '' : document.location.search.substring(1)
).get('couleur')
const IFRAME_COLOR: [number, number] = rawIframeColor
? JSON.parse(decodeURIComponent(rawIframeColor))
const IFRAME_COLOR = rawIframeColor
? (JSON.parse(decodeURIComponent(rawIframeColor)) as number[])
: DEFAULT_COLOR_HS
// Note that the iframeColor is first set in the index.html file, but without
@ -40,7 +40,6 @@ export function ThemeColorsProvider({ color, children }: ProviderProps) {
)
useEffect(() => {
const root = document.querySelector(':root') as HTMLElement | undefined
console.log(root)
root?.style.setProperty(`--${HUE_CSS_VARIABLE_NAME}`, `${hue}deg`)
root?.style.setProperty(
`--${SATURATION_CSS_VARIABLE_NAME}`,