I'm developing a plugin and when the user presses the button, the tab opens with window.open. But I want to prevent multiple openings from the same tab. I couldn't do this. First, I saved the url addresses of all tabs in an array, then I made a query with if else, but it didn't work.