Browser extension could open already open tab instead of new one

If you click the browser extension, there’s the “Open web UI” button. Clicking on it opens a new localhost tab. In situations where a tab already exists, it could instead open it. (I think it is possible to do? but not completely certain)