chore: address linter warnings

This commit is contained in:
Gabe Kangas
2023-08-02 13:41:08 -07:00
parent d3c5e14aa0
commit 243156b307
4 changed files with 14 additions and 12 deletions

View File

@@ -1,7 +1,7 @@
/* eslint-disable react/no-danger */
import { Html, Head, Main, NextScript } from 'next/document';
import { readFileSync } from 'fs';
import { join } from 'path';
import { Html, Head, Main, NextScript } from 'next/document';
class InlineStylesHead extends Head {
getCssLinks: Head['getCssLinks'] = ({ allFiles }) => {

View File

@@ -39,10 +39,13 @@ export default function VideoEmbed() {
* query parameters ourselves
*/
const path = router.asPath.split('?')[1] ?? '';
const query = path.split('&').reduce((currQuery, part) => {
const [key, value] = part.split('=');
return { ...currQuery, [key]: value };
}, {} as Record<string, string>);
const query = path.split('&').reduce(
(currQuery, part) => {
const [key, value] = part.split('=');
return { ...currQuery, [key]: value };
},
{} as Record<string, string>,
);
const initiallyMuted = query.initiallyMuted === 'true';