git ssb

16+

Dominic / patchbay



Commit fadded1d36d0afdf3d2d5097b49c26f69165e376

Better links directly to the file posted

Anders Rune Jensen committed on 4/23/2019, 9:29:15 PM
Parent: 08512a83e5b7de612b989c3f398132d015d1eecc

Files changed

message/html/compose.jschanged
message/html/compose.jsView
@@ -163,14 +163,11 @@
163163 type: 'file',
164164 'ev-click': () => hasContent.set(true),
165165 'ev-change': (ev) => {
166166 const file = ev.target.files[0]
167- console.log("files", files)
168167 datSharedFiles.shareFile(file.path, (datLink) => {
169- console.log("dat link", datLink)
170-
171168 const pos = textArea.selectionStart
172- const insertLink = '[' + file.name + ']' + '(' + datLink + ')'
169 + const insertLink = '[' + file.name + ']' + '(' + datLink + '/' + file.name + ')'
173170
174171 textArea.value = textArea.value.slice(0, pos) + insertLink + textArea.value.slice(pos)
175172 })
176173 }

Built with git-ssb-web