Skip to content

Commit

Permalink
Merge pull request #9 from bert-w/2.x
Browse files Browse the repository at this point in the history
Fix demo
  • Loading branch information
bert-w authored Nov 25, 2024
2 parents 3bed25c + ada955c commit efcc10a
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 efcc10a

Please sign in to comment.