Fix SurveyURL property name
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
This commit is contained in:
parent
ff5ac0fe1f
commit
730b43cad1
2 changed files with 5 additions and 5 deletions
|
|
@ -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}
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue