Skip to content

Commit

Permalink
Address CR
Browse files Browse the repository at this point in the history
  • Loading branch information
ihodes committed Nov 21, 2014
1 parent a69c0ce commit 5b3cb17
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cycledash/static/js/examine/RecordStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ function createRecordStore(vcfId, dispatcher) {

function setSearchStringToQuery(query) {
var queryString = encodeURI(JSON.stringify(query));
window.history.pushState(null, null, '?query=' + queryString);
window.history.replaceState(null, null, '?query=' + queryString);
}

// Returns the value with the given name in the URL search string.
Expand All @@ -172,8 +172,7 @@ function createRecordStore(vcfId, dispatcher) {
var [key, val] = v.split('=');
return decodeURIComponent(key) == name;
}));
if (val)
return decodeURIComponent(val.split('=')[1]);
if (val) return decodeURIComponent(val.split('=')[1]);
}

/**
Expand Down

0 comments on commit 5b3cb17

Please sign in to comment.