From: Andrew Dolgov Date: Sat, 24 Jan 2009 05:26:00 +0000 (+0100) Subject: prefs: properly recover from attempt to set nonexistant tab on init X-Git-Tag: git2svn-syncpoint-master~31 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=e8375afe409d39d96dbdb77e059113a6bbddc71e;p=tt-rss.git prefs: properly recover from attempt to set nonexistant tab on init --- diff --git a/prefs.js b/prefs.js index 8fdaeb94..3827ec9c 100644 --- a/prefs.js +++ b/prefs.js @@ -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;