1
0
mirror of https://tt-rss.org/git/tt-rss.git synced 2024-06-24 11:56:36 +02:00

prefs: properly recover from attempt to set nonexistant tab on init

This commit is contained in:
Andrew Dolgov 2009-01-24 06:26:00 +01:00
parent 64b3069d27
commit e8375afe40

View File

@ -1333,6 +1333,7 @@ function init_second_stage() {
try {
active_tab = getInitParam("prefs_active_tab");
if (!document.getElementById(active_tab+"Tab")) active_tab = "genConfig";
if (!active_tab || active_tab == '0') active_tab = "genConfig";
document.onkeydown = pref_hotkey_handler;