Skip to content

Commit

Permalink
controller_anim: If there's no state OTT, then we're at the root of t…
Browse files Browse the repository at this point in the history
…he tree #91
  • Loading branch information
lentinj committed Jun 20, 2018
1 parent 8cc3d67 commit 4a86d9b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export default function (Controller) {
// Get current OTT from the URL, convert to code
let loc = (window.location.pathname.indexOf("@") === -1) ? null : window.location.pathname.slice(window.location.pathname.indexOf("@"));
let state = parse_query(loc, window.location.search, window.location.hash);
codeout_fly = data_repo.ott_id_map[state.ott];
codeout_fly = data_repo.ott_id_map[state.ott] || 1;
} else {
// Move to start location
p = p.then(function () {
Expand Down

0 comments on commit 4a86d9b

Please sign in to comment.