-
-
Notifications
You must be signed in to change notification settings - Fork 259
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
Script Not executing on OnSelect function #781
Comments
I can execute this code in your demo link window.open( |
I have changed the logic. 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. 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
The text was updated successfully, but these errors were encountered: