Skip to content

Commit

Permalink
JS Lint changes
Browse files Browse the repository at this point in the history
  • Loading branch information
danirus committed Nov 25, 2024
1 parent 2b053aa commit 22dcc10
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/src/versions.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ function _getCurrentVersion() {
const all_version_elems = document.querySelectorAll(qs_version_url);
for (const version_elem of all_version_elems) {
let version_url = version_elem.dataset?.snfttVersionUrl;
version_url = version_url.replace("?", "\\?");
version_url = version_url.replace("?", String.raw`\?`);
if (new RegExp(version_url).test(window.location.href)) {
return version_elem.dataset?.snfttVersion;
};
Expand Down
4 changes: 3 additions & 1 deletion js/tests/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ config.frameworks = frameworks;
config.plugins = plugins;
config.reporters = reporters;

module.exports = (karmaConfig) => {
const getKarmaConfig = (karmaConfig) => {
config.logLevel = karmaConfig.LOG_ERROR;
karmaConfig.set(config);
};

module.exports = getKarmaConfig;

0 comments on commit 22dcc10

Please sign in to comment.