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'); const spaModule = require('./spa.js');
// Set the wasm file path // Set the wasm file path
spaModule.locateFile = (filename) => { spaModule.wasmBinaryFile = path.join(__dirname, 'spa.wasm');
return path.join(__dirname, filename);
};
module.exports = function spa( module.exports = function spa(
date, date,
latitude, latitude,

View file

@ -1,5 +1,4 @@
// test.js // test.js
// Import the 'solar-spa' module
const spa = require('./solar-spa.js'); const spa = require('./solar-spa.js');
// Define input parameters for a specific date, time, and location // Define input parameters for a specific date, time, and location