Skip to content

Commit

Permalink
Merge pull request #6 from QXIP/develop
Browse files Browse the repository at this point in the history
fix: BASE_URL for includes on worker.ts
  • Loading branch information
RFbkak37y3kIY authored Dec 13, 2024
2 parents c9f0da2 + ef80059 commit 795161f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/app/wiregasm.worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// postMessage(response);
// });


const BASE_URL_WIREGASM_LIB = 'wiregasm-lib/';


// load the Wiregasm library and pako
Expand All @@ -14,12 +14,12 @@
// if you are not compressing the wasm and data files, you do not need to include pako
//
// import * from '../wiregasm-lib'
// import wiregasm from "../wiregasm-lib/wiregasm.js";
// import pako from "../wiregasm-lib/pako.js";
// import wiregasm from BASE_URL_WIREGASM_LIB + "wiregasm.js";
// import pako from BASE_URL_WIREGASM_LIB + "pako.js";

importScripts(
"../wiregasm-lib/wiregasm.js",
"../wiregasm-lib/pako.js"
BASE_URL_WIREGASM_LIB + "wiregasm.js",
BASE_URL_WIREGASM_LIB + "pako.js"
);


Expand All @@ -40,10 +40,10 @@ const fetchPackages = async () => {
console.log("Fetching packages");
let [wasm, data] = await Promise.all([
await inflateRemoteBuffer(
"../wiregasm-lib/wiregasm.wasm.gz"
BASE_URL_WIREGASM_LIB + "wiregasm.wasm.gz"
),
await inflateRemoteBuffer(
"../wiregasm-lib/wiregasm.data.gz"
BASE_URL_WIREGASM_LIB + "wiregasm.data.gz"
),
]);

Expand Down

0 comments on commit 795161f

Please sign in to comment.