When leave the call, how to close the window. not redirect to index

when leave the call, I want to just close the window, not redirect to index.
which code call the index.html after leaving the room ?

enable close page from config.js -> enableClosePage: true,