From cad59e57598ce6a4c2fb0d489718013dc3b89f47 Mon Sep 17 00:00:00 2001 From: Ali Camarata Date: Sat, 1 Apr 2023 08:08:18 -0400 Subject: [PATCH] Directly linked WASM file to resolve bug --- solar-spa.js | 5 ++--- test.js | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) 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