diff options
author | Sam Potts <me@sampotts.me> | 2016-01-17 10:48:26 +1100 |
---|---|---|
committer | Sam Potts <me@sampotts.me> | 2016-01-17 10:48:26 +1100 |
commit | 3f42e53d95fff0a8f9a6ea2a730c21df23577f06 (patch) | |
tree | 107865e4bccce0511a58b46e3948082aa1c32ed0 /docs/src/js | |
parent | 54b0dc5273546e812456e5ab201cc5b2e1f2adca (diff) | |
download | plyr-3f42e53d95fff0a8f9a6ea2a730c21df23577f06.tar.lz plyr-3f42e53d95fff0a8f9a6ea2a730c21df23577f06.tar.xz plyr-3f42e53d95fff0a8f9a6ea2a730c21df23577f06.zip |
Don't add video hash
Diffstat (limited to 'docs/src/js')
-rw-r--r-- | docs/src/js/docs.js | 7 |
1 files changed, 4 insertions, 3 deletions
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); } } |