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

View file

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