Skip to content

Commit ada955c

Browse files
committed
Update index.html
1 parent b35ca01 commit ada955c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ <h2 id="output-score" class="text-center d-none fs-4 mb-3">Complexity score: <b>
133133
query.classList.remove('is-valid', 'is-invalid');
134134
outputScore.classList.add('d-none');
135135

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

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

0 commit comments

Comments
 (0)