xplatform temp directory...
This commit is contained in:
parent
8e688abe3c
commit
758bb2e474
2
app/c.js
2
app/c.js
|
@ -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)}`
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue