Fix bad merge (#126)
This commit is contained in:
parent
511805e36c
commit
eae9f9826a
2 changed files with 3 additions and 2 deletions
|
@ -123,7 +123,6 @@ func applyManifest(manifest *model.Manifest) error {
|
|||
return err
|
||||
}
|
||||
manifestStr := string(manifestBytes)
|
||||
manifestStr = strings.ReplaceAll(manifestStr, "\\n", "\\\n")
|
||||
|
||||
// write generated code to file by using Go file template.
|
||||
if err := ioutil.WriteFile(
|
||||
|
@ -145,6 +144,9 @@ func applyManifest(manifest *model.Manifest) error {
|
|||
}
|
||||
manifestStr := string(manifestBytes)
|
||||
|
||||
// Escape newlines
|
||||
manifestStr = strings.ReplaceAll(manifestStr, `\n`, `\\n`)
|
||||
|
||||
// write generated code to file by using JS file template.
|
||||
if err := ioutil.WriteFile(
|
||||
"webapp/src/manifest.ts",
|
||||
|
|
Reference in a new issue