diff --git a/CHANGELOG.pod6 b/CHANGELOG.pod6 index 1b2f331..c8ae91c 100644 --- a/CHANGELOG.pod6 +++ b/CHANGELOG.pod6 @@ -1,6 +1,8 @@ =TITLE CHANGES =head1 Upcoming +=head1 0.1.22 +=item1 * fix types =head1 0.1.21 =item1 * add support for =FOOTER block, which adds content to each page =item1 * update styles for links in TOC diff --git a/package.json b/package.json index 7a3ec31..82d2417 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "podlite-web", "description": "📖 Create static websites with Next.js and the Podlite markup language.", - "version": "0.1.21", + "version": "0.1.22", "private": true, "scripts": { "next_dev": "next dev", diff --git a/src/components/service.tsx b/src/components/service.tsx index 3d5566d..49a3d57 100644 --- a/src/components/service.tsx +++ b/src/components/service.tsx @@ -174,7 +174,7 @@ export const CookieConsent = ({ id, children, buttonCaption }) => { !process.browser ? 1 : (document && document.cookie.indexOf(DISMISSED_COOKIE) > -1) || - (window && window.navigator && window.navigator.CookiesOK) + ((window as any)?.navigator?.CookiesOK) const [showConsent, setShowConsent] = useState(!isCookieConsentDismissed()) const onOkClick = () => { setCookie(DISMISSED_COOKIE, 'yes', 365, window.location.hostname, '/'), setShowConsent(false)