From 612041a2e17696ff97ce21b51748cc4dc8feacd6 Mon Sep 17 00:00:00 2001 From: Pete LePage Date: Thu, 12 Nov 2020 18:46:11 -0500 Subject: [PATCH] Add dot to file type --- src/inline-scripts/fs-helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inline-scripts/fs-helpers.js b/src/inline-scripts/fs-helpers.js index 83bb0ca..f33232d 100644 --- a/src/inline-scripts/fs-helpers.js +++ b/src/inline-scripts/fs-helpers.js @@ -44,7 +44,7 @@ function getNewFileHandle() { const opts = { types: [{ description: 'Text file', - accept: {'text/plain': ['txt']}, + accept: {'text/plain': ['.txt']}, }], }; return window.showSaveFilePicker(opts);