Skip to content

Commit

Permalink
Merge pull request #1 from thomasgauvin/remove-ponyfill
Browse files Browse the repository at this point in the history
remove native ponyfill import
  • Loading branch information
thomasgauvin authored May 22, 2024
2 parents 79d3f17 + f705018 commit 9ace5ee
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { useEffect, useState } from "react";
import DirectoryNode, { createDirectoryNode } from "../../../models/DirectoryNode";
import { Button } from "../../ui/Button";
import * as Separator from '@radix-ui/react-separator';
import { showDirectoryPicker } from "native-file-system-adapter";

export function WorkspaceSelector({
setSelectedDirectory
Expand All @@ -13,7 +12,7 @@ export function WorkspaceSelector({

const handleDirectorySelect = async () => {
try {
const directoryHandle = await showDirectoryPicker();
const directoryHandle = await window.showDirectoryPicker();
if(!directoryHandle) return;

setSelectedDirectory(
Expand Down

0 comments on commit 9ace5ee

Please sign in to comment.