Function tabFocusListener

Set callbacks for if current browser tab is in focus

  • Parameters

    • OptionalfocusCallback: () => void

      Function to be called when current browser tab goes into focus

    • OptionalblurCallback: () => void

      Function to be called when current browser tab goes out of focus

    Returns void

    void