Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove window or tab based on what the browser opens #1976

Merged
merged 1 commit into from
Jan 15, 2023
Merged

Conversation

bumi
Copy link
Collaborator

@bumi bumi commented Jan 14, 2023

Normally when we open a new window the prompt is the only tab in this window If that's the case we have to close the prompt using windows.remove()

Some browsers force the new window to open in a tab. In this case we have to close the prompt using tabs.remove()

Some browsers actually can close the window when tabs.remove() removes the only/last tab. But Opera fails with the following error: "Tabs cannot be edited right now (user may be dragging a tab)"

Normally when we open a new window the prompt is the only tab in this window
If that's the case we have to close the prompt using windows.remove()

Some browsers force the new window to open in a tab. In this case we
have to close the prompt using tabs.remove()

Some browsers actually can close the window when tabs.remove() removes
the only/last tab. But Opera fails with the following error:
"Tabs cannot be edited right now (user may be dragging a tab)"
@bumi bumi requested a review from reneaaron January 14, 2023 23:39
@github-actions
Copy link

🚀 Thanks for the pull request!

Here are the current build files for testing:

Download and unzip the file for your browser. Refer to the readme for detailed install instructions.


This build is brought to you by: null (who recently dropped 1000 sats):

The future will be bright because we will create it!

Want to sponsor the next build? send some sats to ⚡️builds@getalby.com (don't forget to provide your name)

Don't forget: keep earning sats!

Copy link
Contributor

@reneaaron reneaaron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@bumi bumi merged commit 29deb47 into master Jan 15, 2023
@bumi bumi deleted the fix/opera branch January 15, 2023 15:11
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants