client-app/app/components/back-trace.js in logster-2.6.1 vs client-app/app/components/back-trace.js in logster-2.6.2

- old
+ new

@@ -4,11 +4,11 @@ function startsWith(str, search) { if (!str || !search || search.length > str.length) { return false; } - return str.substring(0, search.length) == search; + return str.substring(0, search.length) === search; } function backtraceLinksEnabled() { return Preloaded.get("backtrace_links_enabled"); } @@ -113,11 +113,13 @@ } return url; }, findGithubURL(line, shortenedLine) { + const projectDirs = Preloaded.get("directories") || []; const isGem = startsWith(line, Preloaded.get("gems_dir")); - if (isGem) { + const isApp = projectDirs.some(p => startsWith(line, p.path)); + if (isGem || !isApp) { return this.GithubURLForGem(shortenedLine); } else { return this.GithubURLForApp(line); } },