mirror of
https://gitlab.com/ArkHost/HelixNotes.git
synced 2026-11-22 11:04:56 +01:00
Fix dragging selected notes to notebooks
This commit is contained in:
1 parent
54e051ba02
commit
e62404d4c0
4 files changed
+78
-19
No files matched your search
@@ -0,0 +1,7 @@
|
||||
export function encodeNoteDragPaths(paths: Iterable<string>): string {
|
||||
return [...paths].join("\n");
|
||||
}
|
||||
|
||||
export function decodeNoteDragPaths(payload: string): string[] {
|
||||
return payload.split(/\r?\n/).filter((path) => path.length > 0);
|
||||
}
|
||||
Reference in new issue
Block a user