Fix dragging selected notes to notebooks

This commit is contained in:
Yuri Karamian
2026-08-03 00:27:18 +02:00
parent 54e051ba02
commit e62404d4c0
4 changed files with 78 additions and 19 deletions
+7
View File
@@ -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);
}