I have this button with an action that closes the

Francis:
I have this button with an action that closes the current tab.

{
    "action": "function",
    "function": "window.close();",
    "options": {}
}

When the link(page with this button) is opened using path action in BF, the button works → closes the tab.
When I copy paste the URL on a new window/tab, the button does not work → window/tab will not close.


Andrew Dam:
According to the docs, the window.close() function will only work if the page was opened by a script, such as a BF path. If not, it will have no effect.


Francis:
That’s what I’m finding out now