I am using local-server to start an application. This works well. My application should have only one instance. Therefore, I stop my application when the tab, created with a click on the launch button, is closed. This works nicely. But my application breaks if the user opens a second tab, which creates a second instance of my application while the old instance is still running. Is there a way to close a tab when a new one is created?
Thanks for this great extension.
I am using
local-server
to start an application. This works well. My application should have only one instance. Therefore, I stop my application when the tab, created with a click on the launch button, is closed. This works nicely. But my application breaks if the user opens a second tab, which creates a second instance of my application while the old instance is still running. Is there a way to close a tab when a new one is created?