Closed dev-AshishRanjan closed 3 months ago
I can execute this code in your demo link
window.open(
https://hlsdownload.vidbinge.com/?url=${option.url}
,
);
@zhw2590582 ,
I have changed the logic.
window.open()
is still not working
The new logic to do this is:
onSelect: function (item: any) {
// window.open("https://www.watchparty.me/create?video=" + option?.url);
// window.location.href = "https://www.watchparty.me/create?video=" + option?.url;
let url = `https://www.watchparty.me/create?video=${option.url}`;
let event = new MouseEvent("click", {
bubbles: true,
cancelable: true,
view: window,
});
let a = document.createElement("a");
a.href = url;
a.target = "_blank";
a.dispatchEvent(event);
},
The issue has been resolved from my side by changing logic.
But I would like to mention that window.open()
was working few days back.
Thanks for your support, I am closing this issue 👍
Maybe you accidentally modified the Chrome security policy, you may have disabled the use of JS to open third-party pages, you can try using incognito mode
Expected behaviour
It should open a new tab in browser and and go to the specified url
Actual behaviour
No Redirection is found
Steps to reproduce
Code :
Few days back, after selecting the submenu, it use to run the script
but now this script is not running in onSelect function
Environment
Console errors (if any)
no error
Link to where the bug is happening
https://rivestream.live/watch?type=movie&id=786892