mirror of
https://github.com/acamarata/solar-spa.git
synced 2026-07-02 11:50:42 +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');
|
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,
|
||||||
|
|
|
||||||
1
test.js
1
test.js
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue