Skip to content

Commit

Permalink
fix: useWindowFocus comment description
Browse files Browse the repository at this point in the history
  • Loading branch information
L03TJ3 committed Nov 9, 2023
1 parent 1592310 commit f007cf2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/good-design/src/hooks/useWindowFocus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
import React, { useEffect, useState } from "react";

/**
to catch which iframe is focused
@param iframeTitle which iframe to watch
@param cb callback to run when iframe is focused
to catch which window is focused
@returns {string} title of the focused window
*/
export const useWindowFocus = () => {
const [title, setTitle] = useState("");
Expand Down

0 comments on commit f007cf2

Please sign in to comment.