Skip to content
Snippets Groups Projects
Commit d82133ce authored by Jono Wenger's avatar Jono Wenger
Browse files

Add javascript files

parent 0bebdfbf
No related branches found
No related tags found
2 merge requests!67fix for latest client release,!52XX-4382 / Move indexedDb databases to web workers
...@@ -23,7 +23,7 @@ import ( ...@@ -23,7 +23,7 @@ import (
// WorkerJavascriptFileURL is the URL of the script the worker will execute to // WorkerJavascriptFileURL is the URL of the script the worker will execute to
// launch the worker WASM binary. It must obey the same-origin policy. // launch the worker WASM binary. It must obey the same-origin policy.
const WorkerJavascriptFileURL = "/integrations/assets/indexedDbWorker.js" const WorkerJavascriptFileURL = "/integrations/assets/dmIndexedDbWorker.js"
// MessageReceivedCallback is called any time a message is received or updated. // MessageReceivedCallback is called any time a message is received or updated.
// //
......
////////////////////////////////////////////////////////////////////////////////
// Copyright © 2022 xx foundation //
// //
// Use of this source code is governed by a license that can be found in the //
// LICENSE file. //
////////////////////////////////////////////////////////////////////////////////
importScripts('wasm_exec.js');
const go = new Go();
const binPath = 'xxdk-indexedDkWorker.wasm'
WebAssembly.instantiateStreaming(fetch(binPath), go.importObject).then((result) => {
go.run(result.instance);
}).catch((err) => {
console.error(err);
});
\ No newline at end of file
////////////////////////////////////////////////////////////////////////////////
// Copyright © 2022 xx foundation //
// //
// Use of this source code is governed by a license that can be found in the //
// LICENSE file. //
////////////////////////////////////////////////////////////////////////////////
importScripts('wasm_exec.js');
const go = new Go();
const binPath = 'xxdk-indexedDkWorker.wasm'
WebAssembly.instantiateStreaming(fetch(binPath), go.importObject).then((result) => {
go.run(result.instance);
}).catch((err) => {
console.error(err);
});
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment