mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-25 00:00:26 +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();
|
var fileList = await loadFromDisk();
|
||||||
Log.i("Notes Cache Loaded: ${fileList.length} items");
|
Log.i("Notes Cache Loaded: ${fileList.length} items");
|
||||||
|
|
||||||
var sep = Platform.pathSeparator;
|
var sep = p.separator;
|
||||||
var notesBasePath = this.notesBasePath;
|
var notesBasePath = this.notesBasePath;
|
||||||
if (!notesBasePath.endsWith(sep)) {
|
if (!notesBasePath.endsWith(sep)) {
|
||||||
notesBasePath += sep;
|
notesBasePath += sep;
|
||||||
|
Reference in New Issue
Block a user