summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorThomas F. K. Jorna <[email protected]>2021-10-05 12:35:40 +0200
committerThomas F. K. Jorna <[email protected]>2021-10-05 12:35:40 +0200
commit33839479e269bed905f9eefc374060b9d3ee7e19 (patch)
treef628200a10e5e37aa00f05cea2464eaf67df9581 /util
parentb0ddf286f087b31dc75626f709cfce3889de25dd (diff)
feat(preview): filesystem basics in place
Diffstat (limited to 'util')
-rw-r--r--util/FileSystem.tsx0
-rw-r--r--util/checkFileSystemCompatibility.ts3
2 files changed, 3 insertions, 0 deletions
diff --git a/util/FileSystem.tsx b/util/FileSystem.tsx
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/util/FileSystem.tsx
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'
+}