mirror of
https://github.com/logseq/logseq.git
synced 2026-05-03 10:26:35 +00:00
feat!: File Sync (#5355)
- file sync for electron/ios/android - age encryption of both file content and file path - massive UI enhancement - corresponding CI tasks Co-authored-by: llcc <lzhes43@gmail.com> Co-authored-by: rcmerci <rcmerci@gmail.com> Co-authored-by: Tienson Qin <tiensonqin@gmail.com> Co-authored-by: Andelf <andelf@gmail.com> Co-authored-by: Gabriel Horner <gabriel@logseq.com>
This commit is contained in:
@@ -314,8 +314,12 @@ export const nodePath = Object.assign({}, path, {
|
||||
|
||||
join (input, ...paths) {
|
||||
let orURI = null
|
||||
const s = [
|
||||
'file://', 'http://',
|
||||
'https://', 'content://'
|
||||
]
|
||||
|
||||
if (input.startsWith("file://")) {
|
||||
if (s.some(p => input.startsWith(p))) {
|
||||
try {
|
||||
orURI = new URL(input)
|
||||
input = input.replace(orURI.protocol + '//', '')
|
||||
|
||||
Reference in New Issue
Block a user