Skip to content

Closing windows using a block #900

Closed Answered by CubesterYT
SillyCubeGuy asked this question in Q&A
Discussion options

You must be logged in to vote

Im not sure what you are doing, but if you use window.close() it tries to close the main TW window, which it doesn't have permission to do so due to security. It can only close other windows that it creates (child windows of the main window). After my extension, Window Controls gets added, I will be working on an update to make sub windows, of which will show the code to closing sub windows, of which permissions work. Note that window.close() doesn't work on normal tabs only, if its an app or a file like html (basically packaged), it closes fine.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@ghost
Comment options

@GarboMuffin
Comment options

@SillyCubeGuy
Comment options

Comment options

You must be logged in to vote
2 replies
@SillyCubeGuy
Comment options

@CubesterYT
Comment options

Answer selected by SillyCubeGuy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants