Skip to content

Commit

Permalink
Fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
boredsenseless committed Feb 25, 2025
1 parent 00df84f commit 08eae7f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
4 changes: 3 additions & 1 deletion src/ui/devices/diskdrive.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,14 @@ const DiskDrive = (props: DiskDriveProps) => {
}

const showReadWriteFilePicker = async (index: number) => {
const suffixes = FILE_SUFFIXES.split(",")
let [writableFileHandle] = await window.showOpenFilePicker({
types: [
{
description: "Disk Images",
accept: {
"application/octet-stream": FILE_SUFFIXES.split(",")
// eslint-disable-next-line @typescript-eslint/no-explicit-any
"application/octet-stream": suffixes
}
}
],
Expand Down
4 changes: 2 additions & 2 deletions src/ui/devices/diskdrive_menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const driveMenuItems: Array<Array<MenuItem>> = [
],
[
{
label: "Load Disk from Device (read-only)",
label: "Load Disk from Device (Read-Only)",
icon: faFolderOpen,
index: 0
},
Expand All @@ -108,7 +108,7 @@ export const driveMenuItems: Array<Array<MenuItem>> = [
],
[
{
label: "Load Disk from Device (read/write)",
label: "Load Disk from Device (Read/Write)",
icon: faFolderOpen,
index: 3
},
Expand Down
3 changes: 2 additions & 1 deletion src/worker/motherboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,8 @@ const updateExternalMachineState = () => {
stackString: doGetStackString(),
textPage: getTextPage(),
timeTravelThumbnails: getTimeTravelThumbnails(),
useOpenAppleKey: false, // ignored by main thread
useOpenAppleKey: false, // ignored by main thread,
hotReload: false
}
passMachineState(state)
}
Expand Down
8 changes: 6 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,12 @@
"webworker"
],
"types": [
"@types/wicg-file-system-access",
"@types/jest"
"@types/gapi.client.drive-v3",
"@types/google.accounts",
"@types/google.picker",
"@types/jest",
"@types/w3c-web-serial",
"@types/wicg-file-system-access"
],
"allowJs": true,
"skipLibCheck": true,
Expand Down

0 comments on commit 08eae7f

Please sign in to comment.