Skip to content

Commit

Permalink
fix(web): use sveltekit fetch rather than window.fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
ferothefox committed Aug 12, 2023
1 parent 22800bc commit 05b694d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/web/README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# web
b
cc
2 changes: 1 addition & 1 deletion apps/web/src/routes/mod/[mod]/+page.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { PageLoad } from './$types';
import { env } from '$env/dynamic/public';

export const load = (async ({ params }) => {
export const load = (async ({ params, fetch }) => {
const slug = params.mod;
try {
const response = await fetch(`${env.PUBLIC_API_URL}/graphql`, {
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/routes/profile/[id]/+page.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { PageLoad } from './$types';
import { env } from '$env/dynamic/public';

export const load = (async ({ params }) => {
export const load = (async ({ params, fetch }) => {
const id = params.id;
try {
const response = await fetch(`${env.PUBLIC_API_URL}/graphql`, {
Expand Down

0 comments on commit 05b694d

Please sign in to comment.