add comment

This commit is contained in:
Michael Telatynski 2020-02-05 16:37:19 +00:00
parent ec20e1ece2
commit 2b5e028cbe
1 changed files with 2 additions and 0 deletions

View File

@ -162,6 +162,8 @@ function onTokenLoginCompleted() {
} }
export async function loadApp() { export async function loadApp() {
// XXX: the way we pass the path to the worker script from webpack via html in body's dataset is a hack
// but alternatives seem to require changing the interface to passing Workers to js-sdk
const vectorIndexeddbWorkerScript = document.body.dataset.vectorIndexeddbWorkerScript; const vectorIndexeddbWorkerScript = document.body.dataset.vectorIndexeddbWorkerScript;
if (!vectorIndexeddbWorkerScript) { if (!vectorIndexeddbWorkerScript) {
// If this is missing, something has probably gone wrong with // If this is missing, something has probably gone wrong with