Skip to content
This repository was archived by the owner on Jun 26, 2025. It is now read-only.

Commit 04dc915

Browse files
committed
bugfix: store fetched data directly in snippets variable
1 parent 4ab35d8 commit 04dc915

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default class CssSnippetStore extends Plugin {
2828
try {
2929
if (navigator.onLine) {
3030
const response = await fetch(url);
31-
const data = await response.json();
31+
this.snippets = await response.json();
3232
} else {
3333
new Notice(`No Internet connection...`);
3434
return;

0 commit comments

Comments
 (0)