fix lobby when selected tab is disabled

This commit is contained in:
Thibault Duplessis 2014-12-21 11:39:05 +01:00
parent fb5b1dd697
commit 02815e6161

View file

@ -1546,6 +1546,7 @@ var storage = {
});
var active = storage.get('lobbytab');
if (['real_time', 'seeks', 'now_playing'].indexOf(active) === -1) active = 'real_time';
if (!$wrap.find('>div.tabs>.' + active).length) active = 'real_time';
$wrap.find('>div.tabs>.' + active).addClass('active');
$wrap.find('>.' + active).show();