diff --git a/src/routes/+layout.server.ts b/src/routes/+layout.server.ts index 0701f1c..21f3820 100644 --- a/src/routes/+layout.server.ts +++ b/src/routes/+layout.server.ts @@ -1,10 +1,10 @@ import { error } from '@sveltejs/kit' -import type { PageServerLoad } from './$types' +import type { LayoutServerLoad } from './$types' import { fetchAPI } from '$utils/api' import { PUBLIC_PREVIEW_COUNT } from '$env/static/public' -export const load: PageServerLoad = async () => { +export const load: LayoutServerLoad = async () => { try { const res = await fetchAPI(`query { locations: location (filter: { status: { _eq: "published" }}) { diff --git a/src/routes/shop/+layout.server.ts b/src/routes/shop/+layout.server.ts index 0e554b2..269e191 100644 --- a/src/routes/shop/+layout.server.ts +++ b/src/routes/shop/+layout.server.ts @@ -1,9 +1,9 @@ import { error } from '@sveltejs/kit' -import type { PageServerLoad } from './$types' +import type { LayoutServerLoad } from './$types' import { fetchAPI } from '$utils/api' import { fetchSwell } from '$utils/functions/shopServer' -export const load: PageServerLoad = async () => { +export const load: LayoutServerLoad = async () => { try { // Get content from API const res = await fetchAPI(`query { diff --git a/src/service-workers.ts b/src/service-workers.ts index a42ee98..63ca5b6 100644 --- a/src/service-workers.ts +++ b/src/service-workers.ts @@ -14,9 +14,9 @@ const cached = build.concat(files); .open(ASSETS) .then(cache => cache.addAll(cached)) .then(() => { - // if you use typescript: - (self as unknown as ServiceWorkerGlobalScope).skipWaiting(); - // self.skipWaiting(); + // if you use typescript: + (self as unknown as ServiceWorkerGlobalScope).skipWaiting(); + // self.skipWaiting(); }) ); }