xplatform temp directory...

This commit is contained in:
Marcell Mars 2021-04-25 22:37:31 +02:00
parent 8e688abe3c
commit 758bb2e474
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ function captureFrontMatterAndMarkdown() {
}
} else if (k.endsWith('[]')) {
formData.set(k, formData.getAll(k))
var s = JSON.stringify(formData.getAll(k)[0].split(" ☒").join("").split(","))
var s = JSON.stringify(formData.getAll(k)[0].split(","))
frontmatter += `${k.slice(0, -2)}: ${s}\n`
} else if (k == "relpath") {
filepath = `${location.pathname.split('/public')[0]}/content/${formData.get(k)}`

View File

@ -69,7 +69,7 @@ func Init(traceHandle io.Writer, errorHandle io.Writer) {
}
func main() {
file, err := os.OpenFile(filepath.Join("/tmp", "sandpoints-chromeext-log.txt"), os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
file, err := os.OpenFile(filepath.Join(os.TempDir(), "sandpoints-chromeext-log.txt"), os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
if err != nil {
Init(os.Stdout, os.Stderr)
Error.Printf("Unable to create and/or open log file. Will log to Stdout and Stderr. Error: %v", err)