Improve escapehatch help

This commit is contained in:
Oliver Blanthorn 2021-02-22 11:21:12 +01:00
parent ab5be37cff
commit 191ac7c067

View file

@ -3117,6 +3117,8 @@ import { useractions } from "@src/background/user_actions"
*
* NB: when called via `bind --mode=browser`, we return focus from the address bar by opening and closing the "sidebar" (which is used exclusively for this purpose). If escapehatch is called in any other way, we cannot do this as Mozilla thinks it might [spook](https://extensionworkshop.com/documentation/publish/add-on-policies/#no-surprises) [you](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/User_actions) : ).
*
* This sidebar hack will close other sidebars such a TreestyleTabs. You can disable it with `:set escapehatchsidebarhack false`, but Tridactyl will no longer be able to get focus back from certain places such as the address bar.
*
*/
//#background
export async function escapehatch() {