You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It might assist developer usability to embed worker code into a single minified file instead of requiring multiple files as per the current documentation. This could be done using URL.createObjectURL and Blob apis. For example:
var downloadWorkerUrl = URL.createObjectURL(
new Blob([
'<DOWNLOAD WORKER CODE HERE>'
], {type: 'text/javascript'})
);
// which can then be passed to a worker
var worker = new Worker(downloadWorkerUrl)
A scenario where this would be useful is if someone is trying to embed the client in a web-based environment (such as a third party survey tool) where they don't have the ability to upload other static assets to be fetched by the ndt-7 client code. It would also simplify usage in other contexts so that only a single file is needed.
This said, I don't know the client's current browser targets/ these APIs have support for the following:
It might assist developer usability to embed worker code into a single minified file instead of requiring multiple files as per the current documentation. This could be done using
URL.createObjectURL
andBlob
apis. For example:A scenario where this would be useful is if someone is trying to embed the client in a web-based environment (such as a third party survey tool) where they don't have the ability to upload other static assets to be fetched by the ndt-7 client code. It would also simplify usage in other contexts so that only a single file is needed.
This said, I don't know the client's current browser targets/ these APIs have support for the following:
https://caniuse.com/?search=createobjecturl
https://caniuse.com/?search=blob
The text was updated successfully, but these errors were encountered: