From 3f42e53d95fff0a8f9a6ea2a730c21df23577f06 Mon Sep 17 00:00:00 2001 From: Sam Potts Date: Sun, 17 Jan 2016 10:48:26 +1100 Subject: Don't add video hash --- docs/src/js/docs.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'docs/src/js/docs.js') diff --git a/docs/src/js/docs.js b/docs/src/js/docs.js index d342f9c4..471915cb 100644 --- a/docs/src/js/docs.js +++ b/docs/src/js/docs.js @@ -58,13 +58,14 @@ shr.setup({ // On load if(historySupport) { - if(!currentType.length) { + var video = !currentType.length; + if(video) { currentType = 'video'; } if(currentType in types) { - history.replaceState({ 'type': currentType }, '', '#' + currentType); + history.replaceState({ 'type': currentType }, '', (video ? '' : '#' + currentType)); } - if(currentType != 'video') { + if(!video) { newSource(currentType); } } -- cgit v1.2.3