Closing windows using a block #900
-
Not sure how it works but when I try to close a window that is opened by TW it doesn't work. what do I need to do to fix it? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
post more of the extension or try googling that error, it's from your browser |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
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.