diff --git a/src/config.ts b/src/config.ts index 3f8c5cf6..32fa2d75 100644 --- a/src/config.ts +++ b/src/config.ts @@ -511,9 +511,11 @@ class default_config { allowautofocus: "true" | "false" = "true" /** - * Controls whether the newtab focuses on tridactyl or the firefox urlbar. + * Controls whether the newtab focuses on tridactyl's newtab page or the firefox urlbar. + * + * To get FF default behaviour, use "urlbar". */ - allownewtabfocus: "true" | "false" = "true" + newtabfocus: "page" | "urlbar" = "page" /** * Whether to use Tridactyl's (bad) smooth scrolling. diff --git a/src/newtab.ts b/src/newtab.ts index a3388106..190e50b9 100644 --- a/src/newtab.ts +++ b/src/newtab.ts @@ -36,8 +36,8 @@ window.addEventListener("load", _ => { return } spoilerbutton.addEventListener("click", readChangelog) - config.getAsync("allownewtabfocus").then(f => { - if (f === "true") { + config.getAsync("newtabfocus").then(f => { + if (f === "page") { window.focus() } })