Change name to 'newtabfocus' and clear up ambiguities in comments.

This commit is contained in:
Anton Vilhelm Ásgeirsson 2018-10-03 23:56:27 +00:00
parent 6336c3fb01
commit 521a039ade
2 changed files with 6 additions and 4 deletions

View file

@ -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.

View file

@ -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()
}
})