Compare commits
2 commits
758bb2e474
...
b6247c1fab
Author | SHA1 | Date | |
---|---|---|---|
b6247c1fab | |||
5e9cdccbb8 |
3 changed files with 4 additions and 2 deletions
2
app/c.js
2
app/c.js
|
@ -11,7 +11,9 @@ function captureFrontMatterAndMarkdown() {
|
||||||
} else if (k.endsWith('[]')) {
|
} else if (k.endsWith('[]')) {
|
||||||
formData.set(k, formData.getAll(k))
|
formData.set(k, formData.getAll(k))
|
||||||
var s = JSON.stringify(formData.getAll(k)[0].split(","))
|
var s = JSON.stringify(formData.getAll(k)[0].split(","))
|
||||||
|
if (s != "") {
|
||||||
frontmatter += `${k.slice(0, -2)}: ${s}\n`
|
frontmatter += `${k.slice(0, -2)}: ${s}\n`
|
||||||
|
}
|
||||||
} else if (k == "relpath") {
|
} else if (k == "relpath") {
|
||||||
filepath = `${location.pathname.split('/public')[0]}/content/${formData.get(k)}`
|
filepath = `${location.pathname.split('/public')[0]}/content/${formData.get(k)}`
|
||||||
gitpath = `${location.pathname.split('/public')[0]}`
|
gitpath = `${location.pathname.split('/public')[0]}`
|
||||||
|
|
|
@ -34,7 +34,7 @@ var (
|
||||||
var nativeEndian binary.ByteOrder
|
var nativeEndian binary.ByteOrder
|
||||||
|
|
||||||
// bufferSize used to set size of IO buffer - adjust to accommodate message payloads
|
// bufferSize used to set size of IO buffer - adjust to accommodate message payloads
|
||||||
var bufferSize = 8192
|
var bufferSize = 8192 * 8
|
||||||
|
|
||||||
// IncomingMessage represents a message sent to the native host.
|
// IncomingMessage represents a message sent to the native host.
|
||||||
type IncomingMessage struct {
|
type IncomingMessage struct {
|
||||||
|
|
Binary file not shown.
Loading…
Add table
Reference in a new issue