After doing some request I need to clear local storage and close current tab in the browser.
Using window.close()
or similar doesn't work. It gives me the message
Scripts may close only the windows that were opened by it.
After doing some request I need to clear local storage and close current tab in the browser.
Using window.close()
or similar doesn't work. It gives me the message
Scripts may close only the windows that were opened by it.