From 009ec48a8c2e2b324e95da208604fc7810692e53 Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Fri, 30 Jul 2021 11:03:36 +0200 Subject: [PATCH] One less use of dart:io dart:io cannot be used in the web --- lib/core/notes_cache.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/notes_cache.dart b/lib/core/notes_cache.dart index 464d7e32..d216b917 100644 --- a/lib/core/notes_cache.dart +++ b/lib/core/notes_cache.dart @@ -32,7 +32,7 @@ class NotesCache { var fileList = await loadFromDisk(); Log.i("Notes Cache Loaded: ${fileList.length} items"); - var sep = Platform.pathSeparator; + var sep = p.separator; var notesBasePath = this.notesBasePath; if (!notesBasePath.endsWith(sep)) { notesBasePath += sep;