Skip to content

Commit

Permalink
Remove logging
Browse files Browse the repository at this point in the history
  • Loading branch information
gvdongen committed Dec 15, 2023
1 parent 7ada7f8 commit 5ff765d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions static/js/store-query-parameter.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,11 @@
// The default docusaurus behavior only stores the sdk preference in local storage if the user clicked on a specific tab,
// it didn't store the query parameters in local storage. So the query parameters would get lost on subsequent clicks.
const storeSelectedSDK = function () {
console.info("Running sdk language parameter recognition script: " + window.location.search);
const urlParams = new URLSearchParams(window.location.search);
const sdkParam = urlParams.get('sdk');

// Check if the 'sdk' parameter is present in the URL
if (sdkParam !== null) {
// Store the 'sdk' parameter value in the local storage
console.info("Setting sdk local storage parameter to: " + sdkParam);
localStorage.setItem('docusaurus.tab.sdk', sdkParam);
}
}
Expand Down

0 comments on commit 5ff765d

Please sign in to comment.