From 33839479e269bed905f9eefc374060b9d3ee7e19 Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Tue, 5 Oct 2021 12:35:40 +0200 Subject: feat(preview): filesystem basics in place --- util/FileSystem.tsx | 0 util/checkFileSystemCompatibility.ts | 3 +++ 2 files changed, 3 insertions(+) create mode 100644 util/FileSystem.tsx create mode 100644 util/checkFileSystemCompatibility.ts (limited to 'util') diff --git a/util/FileSystem.tsx b/util/FileSystem.tsx new file mode 100644 index 0000000..e69de29 diff --git a/util/checkFileSystemCompatibility.ts b/util/checkFileSystemCompatibility.ts new file mode 100644 index 0000000..a96b68e --- /dev/null +++ b/util/checkFileSystemCompatibility.ts @@ -0,0 +1,3 @@ +export const checkFileSystemCompatibility = () => { + return typeof window.showDirectoryPicker !== 'undefined' +} -- cgit v1.2.3