mirror of
https://github.com/jvsteiner/send-note.git
synced 2026-07-22 11:20:26 +00:00
parent
b0a756cc49
commit
c3933e996f
1 changed files with 1 additions and 7 deletions
|
|
@ -335,13 +335,7 @@ export default class Note {
|
|||
if (!src) continue
|
||||
let content
|
||||
let filepath = ''
|
||||
if (src.startsWith('app://')) {
|
||||
const srcMatch = src.match(/app:\/\/\w+\/([^?#]+)/)
|
||||
if (srcMatch) {
|
||||
filepath = window.decodeURIComponent(srcMatch[1])
|
||||
content = await FileSystemAdapter.readLocalFile(filepath)
|
||||
}
|
||||
} else if (src.match(/^https?:\/\/localhost/) || !src.startsWith('http')) {
|
||||
if (src.match(/^https?:\/\/localhost/) || !src.startsWith('http')) {
|
||||
filepath = src
|
||||
try {
|
||||
const res = await fetch(filepath)
|
||||
|
|
|
|||
Loading…
Reference in a new issue