Skip to content

Commit

Permalink
Merge pull request #905 from CindyJS/kortenkamp/quickfix-basedir
Browse files Browse the repository at this point in the history
another fix of the fix – make sure to take the path including the backslash
  • Loading branch information
kortenkamp committed Aug 30, 2023
2 parents 7d039c9 + 446ab63 commit 2d6a1bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/Head.js
Expand Up @@ -85,11 +85,11 @@ var CindyJS = (function() {
if (!src) continue;
var match = /\/Cindy\.js$/.exec(src);
if (match) {
baseDir = src.substr(0, match.index);
baseDir = src.substr(0, match.index+1);
console.log("Will load extensions from " + baseDir);
cindyJsScriptElement = script;
return baseDir;
}
}
}
console.error("Could not find <script> tag for Cindy.js");
baseDir = cindyJsScriptElement = false;
Expand Down

0 comments on commit 2d6a1bb

Please sign in to comment.