Skip to content

Commit

Permalink
Merge pull request #7 from stordahl/issue-5
Browse files Browse the repository at this point in the history
Fixes #5 bug in kitLoad
  • Loading branch information
stordahl authored Jan 13, 2022
2 parents 73c069c + 85dd2a0 commit 57d7024
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions snippets/snippets.code-snippets
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@
" * @type {import('@sveltejs/kit').Load}",
" */",
"export async function load({ params, url, fetch, session, context }) {",
" const url = `${1:api}`;",
" const res = await fetch(url);",
" const resourceUrl = `${1:api}`;",
" const res = await fetch(resourceUrl);",
"",
"if (res.ok) {",
" return {",
Expand Down

0 comments on commit 57d7024

Please sign in to comment.