fix(core): window.open to a new origin will be blocked by browser (#5856)

This commit is contained in:
liuyi
2024-02-21 12:35:25 +00:00
parent 4a7f0a6142
commit 85be45a79c

View File

@@ -74,7 +74,7 @@ const OpenAppImpl = ({ urlToOpen, channel }: OpenAppProps) => {
if (urlToOpen && lastOpened !== urlToOpen && autoOpen) {
lastOpened = urlToOpen;
open(urlToOpen, '_blank');
location.href = urlToOpen;
}
if (!urlToOpen) {