mirror of
https://github.com/acamarata/solar-spa.git
synced 2026-06-30 19:04:28 +00:00
Directly linked WASM file to resolve bug
This commit is contained in:
parent
35b1cedc4a
commit
cad59e5759
2 changed files with 2 additions and 4 deletions
|
|
@ -3,9 +3,8 @@ const path = require('path');
|
|||
const spaModule = require('./spa.js');
|
||||
|
||||
// Set the wasm file path
|
||||
spaModule.locateFile = (filename) => {
|
||||
return path.join(__dirname, filename);
|
||||
};
|
||||
spaModule.wasmBinaryFile = path.join(__dirname, 'spa.wasm');
|
||||
|
||||
module.exports = function spa(
|
||||
date,
|
||||
latitude,
|
||||
|
|
|
|||
1
test.js
1
test.js
|
|
@ -1,5 +1,4 @@
|
|||
// test.js
|
||||
// Import the 'solar-spa' module
|
||||
const spa = require('./solar-spa.js');
|
||||
|
||||
// Define input parameters for a specific date, time, and location
|
||||
|
|
|
|||
Loading…
Reference in a new issue