1
0
mirror of https://github.com/excalidraw/excalidraw.git synced 2024-11-02 03:25:53 +01:00

Update browser-nativefs (#1963)

Incorporates the latest changes in the Native File System API
This commit is contained in:
Thomas Steiner 2020-07-25 15:34:51 +02:00 committed by GitHub
parent d3a38202e3
commit 880cac2359
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 5 deletions

6
package-lock.json generated

@ -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",

@ -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",

@ -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)}
/>
),