Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
tstirrat committed Aug 29, 2024
1 parent 9f87414 commit ff10dd7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
3 changes: 0 additions & 3 deletions src/components/SysexPreview.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import { Card } from "primereact/card";
import { Waveform } from "../types";
import { sysexWaveformMessage, toHex } from "../lib/sysex";
import { Button } from "primereact/button";
import { PrimeIcons } from "primereact/api";
import { Flex } from "./Flex";
import { useMemo } from "react";
import { IconUtils } from "primereact/utils";

export const SysexPreview: React.FC<{ waveform: Waveform }> = ({
waveform,
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/use_midi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export function useMidiPermission() {
const { state } = await navigator.permissions.query({
name: "midi",
sysex: true,
});
} as unknown as PermissionDescriptor); // TODO: fix this?
setGranted(state);
} catch (e) {
console.error(`Failed to get MIDI permission`, e);
Expand Down
6 changes: 1 addition & 5 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react-swc";
import mkcert from "vite-plugin-mkcert";

// https://vitejs.dev/config/
export default defineConfig({
plugins: [
react(),
// mkcert(),
],
plugins: [react()],
});

0 comments on commit ff10dd7

Please sign in to comment.