Don't add video hash

This commit is contained in:
Sam Potts
2016-01-17 10:48:26 +11:00
parent 54b0dc5273
commit 3f42e53d95
2 changed files with 5 additions and 4 deletions

View File

@ -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);
}
}