mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-24 15:53:45 +08:00
One less use of dart:io
dart:io cannot be used in the web
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user