mirror of
https://github.com/vale981/tridactyl
synced 2025-03-06 10:01:39 -05:00
Change name to 'newtabfocus' and clear up ambiguities in comments.
This commit is contained in:
parent
6336c3fb01
commit
521a039ade
2 changed files with 6 additions and 4 deletions
|
@ -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.
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Reference in a new issue