diff --git a/js/main.js b/js/main.js index febe554..784034f 100644 --- a/js/main.js +++ b/js/main.js @@ -392,5 +392,23 @@ $(function(){ }); // On app start, load top list - load_menu_state(); + if(window.location.hash) { + var hash = String(window.location.hash.replace('#','')); + switch(hash) { + case "top": + switch_menu(0); + break; + case "recent": + switch_menu(1); + break; + case "favorites": + switch_menu(2); + break; + default: + switch_menu(0); + break; + } + } else { + load_menu_state(); + }; });