Skip to content

Commit

Permalink
It does not like the way I did comments
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkar598 committed Jun 23, 2023
1 parent 1ae0f9e commit 21fba8e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/vm/worker.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import wasmUrl from "../lib/v86.wasm?url";
//import isoUrl from "val-loader!../../fetchIso.js?raw";

// @ts-ignore
let prodIsoUrl: string | undefined;
// #v-ifdef DEV
// noinspection ES6UnusedImports
import isoUrl from "../../../buildroot/output/images/rootfs.iso9660?url";
// #v-else
const isoUrl = import.meta.env.VITE_ISO_URL;
prodIsoUrl = import.meta.env.VITE_ISO_URL;
// #v-endif

self.importScripts = () => {};
Expand Down Expand Up @@ -134,7 +133,7 @@ const emulator = new V86Starter({
url: "https://raw.githubusercontent.com/copy/v86/master/bios/vgabios.bin",
},
cdrom: {
url: isoUrl,
url: prodIsoUrl ?? isoUrl,
},
hda: null,
hdb: null,
Expand Down

0 comments on commit 21fba8e

Please sign in to comment.