Skip to content

Commit

Permalink
remove listener and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
c298lee committed Jan 20, 2025
1 parent e4d096a commit 88f3e42
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/types-hoist/feedback/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export interface FeedbackGeneralConfiguration {
*
* Default: undefined
*/
_experiments: Partial<{annotations: boolean;}>
_experiments: Partial<{ annotations: boolean; }>

/**
* Set an object that will be merged sent as tags data with the event.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ export function ScreenshotEditorFactory({
hooks.useEffect(() => {
WINDOW.addEventListener('resize', resize, false);

// return () => {
// WINDOW.removeEventListener('resize', resize, false);
// };
return () => {
WINDOW.removeEventListener('resize', resize, false);
};
}, []);

function resizeCanvas(canvasRef: Hooks.Ref<HTMLCanvasElement>, imageDimensions: Rect): void {
Expand Down

0 comments on commit 88f3e42

Please sign in to comment.