diff --git a/solar-spa.js b/solar-spa.js index 1c06bb9..46dd9ad 100644 --- a/solar-spa.js +++ b/solar-spa.js @@ -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, diff --git a/test.js b/test.js index 8b095b0..0765f91 100644 --- a/test.js +++ b/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