mirror of
https://github.com/rn10950/RetroZilla.git
synced 2024-09-21 04:20:41 +02:00
13 lines
281 B
JavaScript
13 lines
281 B
JavaScript
|
// set whether autofocus is enabled (will use browser pref in release)
|
||
|
var aboutHomeAutofocus = true;
|
||
|
|
||
|
// autofocus function
|
||
|
function autoFocus() {
|
||
|
document.getElementById("rzSearch").focus();
|
||
|
}
|
||
|
|
||
|
window.onload = function() {
|
||
|
if (aboutHomeAutofocus == true) {
|
||
|
autoFocus();
|
||
|
}
|
||
|
};
|