diff --git a/src/app/content/components/AssignedTopBar.spec.tsx b/src/app/content/components/AssignedTopBar.spec.tsx index 378cc9c9cf..8e9ce8ff9c 100644 --- a/src/app/content/components/AssignedTopBar.spec.tsx +++ b/src/app/content/components/AssignedTopBar.spec.tsx @@ -20,7 +20,7 @@ jest.mock('react', () => { describe('AssignedTopBar', () => { const windowBack = assertWindow(); - const addEventListnerBackup = windowBack.addEventListener; + const addEventListenerBackup = windowBack.addEventListener; let addEventListener: jest.SpyInstance; let store: Store; let services: ReturnType & MiddlewareAPI; @@ -39,7 +39,7 @@ describe('AssignedTopBar', () => { }); afterEach(() => { - windowBack.addEventListener = addEventListnerBackup; + windowBack.addEventListener = addEventListenerBackup; }); it('renders', async() => { diff --git a/src/app/content/components/AssignedTopBar.tsx b/src/app/content/components/AssignedTopBar.tsx index a964aee14e..8035aa7db5 100644 --- a/src/app/content/components/AssignedTopBar.tsx +++ b/src/app/content/components/AssignedTopBar.tsx @@ -42,8 +42,6 @@ const StyledSectionTitle = styled.h2` `)} `; -declare const window: any; - const useTextResizeIntegration = (handleChange: (value: TextResizerValue) => void) => { const launchToken = useLaunchToken(); diff --git a/src/app/content/launchToken.ts b/src/app/content/launchToken.ts index 8fc33937c4..c1d4dc24a6 100644 --- a/src/app/content/launchToken.ts +++ b/src/app/content/launchToken.ts @@ -18,7 +18,7 @@ export const decodeToken = (launchToken: string | undefined) => { export const pullToken = (window: Window) => { const searchParams = new URLSearchParams(window.location.search); - const launchToken = searchParams.get('t') ?? undefined; + const launchToken = searchParams.get('t'); if (!launchToken) { return undefined;