aboutsummaryrefslogtreecommitdiffstats
path: root/docs/src
diff options
context:
space:
mode:
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);
}
}