Skip to content

frontend/newtab: fix replacing popup with small inline message#1526

Open
jackoluciano wants to merge 1 commit intoimputnet:mainfrom
jackoluciano:fix/newtab-popup
Open

frontend/newtab: fix replacing popup with small inline message#1526
jackoluciano wants to merge 1 commit intoimputnet:mainfrom
jackoluciano:fix/newtab-popup

Conversation

@jackoluciano
Copy link
Copy Markdown

currently, the window.open() function is not reliable in determining whether a new tab was successfully opened. in many browsers, it returns null due to security restrictions (noreferrer deletes any communication line to the original tab). this leads to situations where the media is successfully opened yet the error popup is still shown, which is unnecessary and annoying

a solution that works better is to change the popup into an inline message stating: "if nothing opened, click here to open it manually."

as a result, i removed the blocked message dialog completely along with the popup block, and introduced a new dialog that needs to be translated into other languages by the community

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.

1 participant