summaryrefslogtreecommitdiff
path: root/util/checkFileSystemCompatibility.ts
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/checkFileSystemCompatibility.ts
parentb0ddf286f087b31dc75626f709cfce3889de25dd (diff)
feat(preview): filesystem basics in place
Diffstat (limited to 'util/checkFileSystemCompatibility.ts')
-rw-r--r--util/checkFileSystemCompatibility.ts3
1 files changed, 3 insertions, 0 deletions
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'
+}