aboutsummaryrefslogtreecommitdiffstats
path: root/docs/src
diff options
context:
space:
mode:
authorSam Potts <me@sampotts.me>2016-01-17 10:48:26 +1100
committerSam Potts <me@sampotts.me>2016-01-17 10:48:26 +1100
commit3f42e53d95fff0a8f9a6ea2a730c21df23577f06 (patch)
tree107865e4bccce0511a58b46e3948082aa1c32ed0 /docs/src
parent54b0dc5273546e812456e5ab201cc5b2e1f2adca (diff)
downloadplyr-3f42e53d95fff0a8f9a6ea2a730c21df23577f06.tar.lz
plyr-3f42e53d95fff0a8f9a6ea2a730c21df23577f06.tar.xz
plyr-3f42e53d95fff0a8f9a6ea2a730c21df23577f06.zip
Don't add video hash
Diffstat (limited to 'docs/src')
-rw-r--r--docs/src/js/docs.js7
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);
}
}