Fix SurveyURL property name
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
nemunaire 2025-10-27 11:12:48 +07:00
commit 730b43cad1
2 changed files with 5 additions and 5 deletions

View file

@ -35,8 +35,8 @@
responses.source = source;
}
if ($appConfig.surveyUrl) {
fetch($appConfig.surveyUrl, {
if ($appConfig.survey_url) {
fetch($appConfig.survey_url, {
method: "POST",
body: JSON.stringify(responses),
headers: {
@ -48,7 +48,7 @@
}
</script>
{#if $appConfig.surveyUrl}
{#if $appConfig.survey_url}
<form class={className} onsubmit={submit}>
{#if step === 0}
{#if question}{@render question()}{:else}

View file

@ -23,12 +23,12 @@ import { writable } from "svelte/store";
interface AppConfig {
report_retention?: number;
surveyUrl?: string;
survey_url?: string;
}
const defaultConfig: AppConfig = {
report_retention: 0,
surveyUrl: "",
survey_url: "",
};
function getConfigFromScriptTag(): AppConfig | null {