mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-17 15:01:29 +00:00
prefs: properly recover from attempt to set nonexistant tab on init
This commit is contained in:
1
prefs.js
1
prefs.js
@@ -1333,6 +1333,7 @@ function init_second_stage() {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
active_tab = getInitParam("prefs_active_tab");
|
active_tab = getInitParam("prefs_active_tab");
|
||||||
|
if (!document.getElementById(active_tab+"Tab")) active_tab = "genConfig";
|
||||||
if (!active_tab || active_tab == '0') active_tab = "genConfig";
|
if (!active_tab || active_tab == '0') active_tab = "genConfig";
|
||||||
|
|
||||||
document.onkeydown = pref_hotkey_handler;
|
document.onkeydown = pref_hotkey_handler;
|
||||||
|
|||||||
Reference in New Issue
Block a user