Browse Source

Update browser-nativefs (#1963)

Incorporates the latest changes in the Native File System API
Thomas Steiner 4 years ago
parent
commit
880cac2359
3 changed files with 7 additions and 5 deletions
  1. 3 3
      package-lock.json
  2. 1 1
      package.json
  3. 3 1
      src/actions/actionExport.tsx

+ 3 - 3
package-lock.json

@@ -3404,9 +3404,9 @@
       "integrity": "sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8="
     },
     "browser-nativefs": {
-      "version": "0.9.1",
-      "resolved": "https://registry.npmjs.org/browser-nativefs/-/browser-nativefs-0.9.1.tgz",
-      "integrity": "sha512-Tq10NyVvwjDfbNQPvKCnhmUdyLUuHBlh1qLj6Rx4HJjA08k8HA3QtjAtqVwt/DI4DbVf3+yUvMzhH9q2htXFBQ=="
+      "version": "0.10.0",
+      "resolved": "https://registry.npmjs.org/browser-nativefs/-/browser-nativefs-0.10.0.tgz",
+      "integrity": "sha512-pmG7I00vqLhPDpB+nRAHh5g4OK5Nbwwv4K0Hj7HsZGNC7MLfbj5MlnjGnsVr/ohiRv28B/jtHEiVmiBjwfjJfQ=="
     },
     "browser-process-hrtime": {
       "version": "1.0.0",

+ 1 - 1
package.json

@@ -28,7 +28,7 @@
     "@types/react": "16.9.43",
     "@types/react-dom": "16.9.8",
     "@types/socket.io-client": "1.4.33",
-    "browser-nativefs": "0.9.1",
+    "browser-nativefs": "0.10.0",
     "i18next-browser-languagedetector": "5.0.0",
     "lodash.throttle": "4.1.1",
     "nanoid": "2.1.11",

+ 3 - 1
src/actions/actionExport.tsx

@@ -111,7 +111,9 @@ export const actionSaveAsScene = register({
       title={t("buttons.saveAs")}
       aria-label={t("buttons.saveAs")}
       showAriaLabel={useIsMobile()}
-      hidden={!("chooseFileSystemEntries" in window)}
+      hidden={
+        !("chooseFileSystemEntries" in window || "showOpenFilePicker" in window)
+      }
       onClick={() => updateData(null)}
     />
   ),