mirror of
https://github.com/LukeHagar/website.git
synced 2025-12-06 12:57:48 +00:00
fix: misc.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { dev } from '$app/environment';
|
||||
import { SENTRY_DSN } from '$lib/constants';
|
||||
import { handleErrorWithSentry, replayIntegration } from '@sentry/sveltekit';
|
||||
import { handleErrorWithSentry } from '@sentry/sveltekit';
|
||||
import * as Sentry from '@sentry/sveltekit';
|
||||
|
||||
Sentry.init({
|
||||
|
||||
@@ -65,11 +65,7 @@
|
||||
});
|
||||
}
|
||||
|
||||
let platform = $page.params.platform as Platform;
|
||||
|
||||
onMount(() => {
|
||||
platform = ($preferredPlatform ?? $page.params.platform) as Platform;
|
||||
|
||||
preferredPlatform.set(platform);
|
||||
preferredVersion.set($page.params.version as Version);
|
||||
});
|
||||
@@ -83,6 +79,7 @@
|
||||
// the service description up to the first full stop, providing sufficient information.
|
||||
$: shortenedDescription = serviceDescription.substring(0, serviceDescription.indexOf('.') + 1);
|
||||
|
||||
$: platform = ($preferredPlatform ?? $page.params.platform) as Platform;
|
||||
$: platformType = platform.startsWith('client-') ? 'CLIENT' : 'SERVER';
|
||||
$: serviceName = serviceMap[data.service?.name];
|
||||
$: title = serviceName + API_REFERENCE_TITLE_SUFFIX;
|
||||
|
||||
Reference in New Issue
Block a user