Skip to content

Add wasConsumed #2

@phistuck

Description

@phistuck

Sometimes there is a user activation, but it was consumed by a powerful API call already (so the next call could be blocked) -

// Somewhere before this code window.open('/'); was called.
if (userActivation.isActive && !userActivation.wasConsumed)
{
 window.open('!'); // This will not be blocked, woo hoo!
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions