Skip to content

Commit 6b67178

Browse files
committed
Fixed res.ok
1 parent 4be3251 commit 6b67178

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class ClassCompletionItemProvider implements CompletionItemProvider {
6767
const items = new Map<string, CompletionItem>();
6868

6969
fetch(key).then(res => {
70-
if (res.status < 400) {
70+
if (res.ok) {
7171
res.text().then(text => {
7272
this.parseTextToItems(text, items);
7373
this.cache.set(key, items);

0 commit comments

Comments
 (0)