Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
bert-w committed Nov 25, 2024
1 parent b35ca01 commit ada955c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ <h2 id="output-score" class="text-center d-none fs-4 mb-3">Complexity score: <b>
query.classList.remove('is-valid', 'is-invalid');
outputScore.classList.add('d-none');

const result = await (new window.$sqomplexity({all: true})).run(e.target.value);
const result = await (new window.$sqomplexity(e.target.value)).analyze();
const score = result[0].complexity;

output.innerHTML = JSON.stringify(result, null, ' ');
Expand Down

0 comments on commit ada955c

Please sign in to comment.