mirror of
https://github.com/logseq/logseq.git
synced 2026-04-30 00:46:23 +00:00
fix: only show open a directory when nfs api is supported
Also, ask for permission when clicking the refresh button
This commit is contained in:
@@ -139,3 +139,12 @@ export var verifyPermission = async function (handle, readWrite) {
|
||||
// The user didn't grant permission, so return false.
|
||||
return false;
|
||||
}
|
||||
|
||||
export var nfsSupported = function () {
|
||||
if ('chooseFileSystemEntries' in self) {
|
||||
return 'chooseFileSystemEntries';
|
||||
} else if ('showOpenFilePicker' in self) {
|
||||
return 'showOpenFilePicker';
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user