📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
getItem -> getCookie
Blue Mouse7e88f5011b66
diff --git a/app/ui/Flatpicker.tsx b/app/ui/Flatpicker.tsxindex 86d719769..b928a6c51 100644--- a/app/ui/Flatpicker.tsx+++ b/app/ui/Flatpicker.tsx@@ -5,11 +5,11 @@ import _size from 'lodash/size'import _split from 'lodash/split'import PropTypes from 'prop-types'-import { getItem } from 'utils/localstorage'+import { getCookie } from 'utils/cookie'import { MAX_MONTHS_IN_PAST } from 'redux/constants'import './Flatpicker.css'-if (getItem('colour-theme') === 'light') {+if (getCookie('colour-theme') === 'light') {// @ts-ignoreimport('flatpickr/dist/themes/light.css')} else {diff --git a/app/ui/icons/BackgroundSvg.tsx b/app/ui/icons/BackgroundSvg.tsxindex 15274797d..78a1589ba 100644--- a/app/ui/icons/BackgroundSvg.tsx+++ b/app/ui/icons/BackgroundSvg.tsx@@ -1,14 +1,14 @@import React from 'react'import cx from 'clsx'import PropTypes from 'prop-types'-import { getItem } from 'utils/localstorage'+import { getCookie } from 'utils/cookie'const BackgroundSvg = ({ className, type, children }: {className?: string,type: 'shapes' | 'circle' | 'semicircle' | 'twolinecircle' | 'threecircle' | 'twolinecircle2',children?: JSX.Element,}): JSX.Element => {- const theme = getItem('colour-theme') || 'light'+ const theme = getCookie('colour-theme') || 'light'if (type === 'shapes') {return (