mirror of
https://github.com/danbulant/api_docs
synced 2026-05-19 12:19:08 +00:00
Fix small bug with new language tabs
This commit is contained in:
parent
d14fd0f70e
commit
fd5cba00f0
1 changed files with 5 additions and 8 deletions
|
|
@ -106,15 +106,12 @@ under the License.
|
|||
|
||||
// returns a new query string with the new language in it
|
||||
function generateNewQueryString(language) {
|
||||
if (location.search.length >= 1) {
|
||||
var url = parseURL(location.search);
|
||||
if (url.language) {
|
||||
url.language = language;
|
||||
return stringifyURL(url);
|
||||
} else {
|
||||
return language
|
||||
}
|
||||
var url = parseURL(location.search);
|
||||
if (url.language) {
|
||||
url.language = language;
|
||||
return stringifyURL(url);
|
||||
}
|
||||
return language;
|
||||
}
|
||||
|
||||
// if a button is clicked, add the state to the history
|
||||
|
|
|
|||
Loading…
Reference in a new issue