Added quotes to live.yaml.
This commit is contained in:
@@ -53,7 +53,7 @@
|
|||||||
console.log("Discovery started with:", data);
|
console.log("Discovery started with:", data);
|
||||||
|
|
||||||
const payload = {
|
const payload = {
|
||||||
internationalisation: {
|
internationalization: {
|
||||||
language: data[1].language,
|
language: data[1].language,
|
||||||
country: data[1].country,
|
country: data[1].country,
|
||||||
time_zone: data[1].timeZone
|
time_zone: data[1].timeZone
|
||||||
@@ -77,7 +77,12 @@
|
|||||||
const response = await fetch('/discovery', {
|
const response = await fetch('/discovery', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: { 'Content-Type': 'text/yaml' },
|
headers: { 'Content-Type': 'text/yaml' },
|
||||||
body: jsyaml.dump(payload, { quotingType: '"', forceQuotes: true })
|
body: jsyaml.dump(payload, {
|
||||||
|
quotingType: '"',
|
||||||
|
styles: {
|
||||||
|
'!!str': 'double'
|
||||||
|
}
|
||||||
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
|
|||||||
Reference in New Issue
Block a user