1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-24 08:22:28 +01:00

Fix 'focuscontent' error.

This commit is contained in:
Doug Kearns
2009-07-11 15:52:24 +10:00
parent c47a0ec1cc
commit 49da7fca3a

View File

@@ -551,14 +551,14 @@ function Events() //{{{
if (doc == getBrowser().contentDocument)
{
// we want to stay in command mode after a page has loaded
// TODO: move somehwere else, as focusing can already happen earlier than on "load"
// TODO: move somewhere else, as focusing can already happen earlier than on "load"
if (options["focuscontent"])
{
setTimeout(function () {
let focused = liberator.focus;
if (focused && (focused.value !== undefined) && focused.value.length == 0)
if (focused && (focused.value != null) && focused.value.length == 0)
focused.blur();
}, 100);
}, 0);
}
}
else // background tab