mirror of
https://gitlab.com/ArkHost/HelixNotes.git
synced 2026-09-21 18:37:30 +02:00
fix(notebooks): normalize icon paths across platforms
This commit is contained in:
@@ -39,6 +39,10 @@ const BUILTIN_IDS: Record<NotebookIconId, true> = {
|
||||
palette: true
|
||||
};
|
||||
|
||||
export function normalizeNotebookIconKey(path: string): string {
|
||||
return path.replace(/\\/g, '/');
|
||||
}
|
||||
|
||||
export function encodeBuiltinNotebookIcon(icon: NotebookIconId): string {
|
||||
return `${BUILTIN_PREFIX}${icon}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user