Skip to content
Snippets Groups Projects
Commit c04e6940 authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

Update NDF, make it accessible via a function

parent 4679cf75
Branches
Tags v0.3.21
No related merge requests found
...@@ -4,4 +4,5 @@ ...@@ -4,4 +4,5 @@
export * from './types'; export * from './types';
export * from './paths'; export * from './paths';
export { GetDefaultNDF } from './ndf';
export { InitXXDK } from './xxdk'; export { InitXXDK } from './xxdk';
\ No newline at end of file
import DefaultNdf from './ndf.json'
export function GetDefaultNDF(): String {
return JSON.stringify(DefaultNdf);
};
\ No newline at end of file
import type { XXDKUtils } from './types'; import type { XXDKUtils } from './types';
import { logFileWorkerPath } from './paths'; import { logFileWorkerPath } from './paths';
import DefaultNdf from './ndf.json'
const xxdkWasm: URL = require('../assets/wasm/xxdk.wasm'); const xxdkWasm: URL = require('../assets/wasm/xxdk.wasm');
type Logger = { type Logger = {
StopLogging: () => void, StopLogging: () => void,
GetFile: () => Promise<string>, GetFile: () => Promise<string>,
...@@ -137,7 +134,3 @@ export const InitXXDK = () => new Promise<XXDKUtils>(async (xxdkUtils) => { ...@@ -137,7 +134,3 @@ export const InitXXDK = () => new Promise<XXDKUtils>(async (xxdkUtils) => {
RPCSend RPCSend
}); });
}); });
export const GetDefaultNDF = (): String => {
return JSON.stringify(DefaultNdf);
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment