Skip to content

Commit

Permalink
fixed whitespace and removed entry in version array
Browse files Browse the repository at this point in the history
  • Loading branch information
thalbern committed Mar 20, 2019
1 parent 62afeaa commit 96ed665
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion templates/mrtk/styles/main.js
Expand Up @@ -4,7 +4,7 @@ function createSharedTags()
{
// get web root path
var scripts = document.getElementsByTagName("script");
var scriptPath = scripts[scripts.length-1].src;
var scriptPath = scripts[scripts.length-1].src;
var versionIndex = scriptPath.lastIndexOf('version/');
var rootDir = scriptPath;
if (versionIndex > 0)
Expand Down
4 changes: 2 additions & 2 deletions web/version.js
Expand Up @@ -3,7 +3,7 @@ function createDropdown()
{
// configurable values:
var defaultTitle = "mrtk_development"; // title in the dropdown for the root version of the docs
var versionArray = [""]; // list of all versions in the version folder
var versionArray = []; // list of all versions in the version folder

//--------------------------------------

Expand All @@ -19,7 +19,7 @@ function createDropdown()

// get web root path
var script = document.getElementById('dropdownScript');
var scriptPath = script.src;
var scriptPath = script.src;
var versionIndex = scriptPath.lastIndexOf('version/');
var rootDir = scriptPath;
if (versionIndex > 0)
Expand Down

0 comments on commit 96ed665

Please sign in to comment.