Skip to content

Commit

Permalink
updates from feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
TomWoodward committed Jun 17, 2024
1 parent 421b552 commit 9c996b3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/app/content/components/AssignedTopBar.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<typeof createTestServices> & MiddlewareAPI;
Expand All @@ -39,7 +39,7 @@ describe('AssignedTopBar', () => {
});

afterEach(() => {
windowBack.addEventListener = addEventListnerBackup;
windowBack.addEventListener = addEventListenerBackup;
});

it('renders', async() => {
Expand Down
2 changes: 0 additions & 2 deletions src/app/content/components/AssignedTopBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ const StyledSectionTitle = styled.h2`
`)}
`;

declare const window: any;

const useTextResizeIntegration = (handleChange: (value: TextResizerValue) => void) => {
const launchToken = useLaunchToken();

Expand Down
2 changes: 1 addition & 1 deletion src/app/content/launchToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9c996b3

Please sign in to comment.