Skip to content
This repository was archived by the owner on May 8, 2025. It is now read-only.

when popup window in running, if main windows is clicked by user, the detecting will not workΒ #21

@GalliumWang

Description

@GalliumWang

there is some bug with the code below

    // detection.ts
    const isBrowserActive = document.hasFocus() || handler.document.hasFocus()
    if (!isBrowserActive) {
      throw AlertMessage.FocusWindow
    }

    // Make test
    if (document.hasFocus()) {
      document.body.insertBefore(input, document.getElementById('app'))
    } else {
      handler.document.body.appendChild(input)
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions