Directly linked WASM file to resolve bug

This commit is contained in:
Ali Camarata 2023-04-01 08:08:18 -04:00
parent 35b1cedc4a
commit cad59e5759
2 changed files with 2 additions and 4 deletions

View file

@ -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,

View file

@ -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