mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: Update browser-fs-access to use new supported export (#3303)
* Use new exported supported * Bump to v0.15.3
This commit is contained in:
parent
78f3a92dd1
commit
f7e17a28fa
4 changed files with 9988 additions and 9344 deletions
|
@ -3,6 +3,7 @@ import React from "react";
|
|||
import { RoughCanvas } from "roughjs/bin/canvas";
|
||||
import rough from "roughjs/bin/rough";
|
||||
import clsx from "clsx";
|
||||
import { supported } from "browser-fs-access";
|
||||
|
||||
import {
|
||||
actionAddToLibrary,
|
||||
|
@ -3609,10 +3610,7 @@ class App extends React.Component<ExcalidrawProps, AppState> {
|
|||
file?.name.endsWith(".excalidraw")
|
||||
) {
|
||||
this.setState({ isLoading: true });
|
||||
if (
|
||||
"chooseFileSystemEntries" in window ||
|
||||
"showOpenFilePicker" in window
|
||||
) {
|
||||
if (supported) {
|
||||
try {
|
||||
// This will only work as of Chrome 86,
|
||||
// but can be safely ignored on older releases.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue