Skip to content

Commit

Permalink
use canUpgradeFs
Browse files Browse the repository at this point in the history
  • Loading branch information
netalondon committed Sep 8, 2024
1 parent a008cc2 commit c6fbf09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/src/pages/compiler.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import URLs from "../urls";
import "./compiler.scss";

export const Compiler = () => {
const { setStatus } = useContext(BaseContext);
const { setStatus, canUpgradeFs } = useContext(BaseContext);
const { tracking } = useContext(AppContext);
const { stores, setTool } = useContext(PageContext);
const { state, dispatch, actions } = stores.compiler;
Expand Down Expand Up @@ -59,7 +59,7 @@ export const Compiler = () => {
}, [state.selected]);

const uploadFiles = async () => {
if ("showDirectoryPicker" in window) {
if (canUpgradeFs) {
await uploadFilesForEdit();
setEditable(true);
} else {
Expand Down

0 comments on commit c6fbf09

Please sign in to comment.