Skip to content

Commit

Permalink
docs(navbar-search): add missing variables
Browse files Browse the repository at this point in the history
was broken by c3384bc

re #12830
  • Loading branch information
hasezoey committed Dec 28, 2022
1 parent a145f2c commit a46ee18
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/js/navbar-search.js
@@ -1,3 +1,5 @@
var defaultVersion = '6.x';

(function() {
var versionFromUrl = window.location.pathname.match(/^\/docs\/(\d+\.x)/);
var version = versionFromUrl ? versionFromUrl[1] : defaultVersion;
Expand Down

0 comments on commit a46ee18

Please sign in to comment.