MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / toInternalUri

Function toInternalUri

src/utils/helpers.js:322–332  ·  view source on GitHub ↗
(uri)

Source from the content-addressed store, hash-verified

320 }
321 },
322 async toInternalUri(uri) {
323 return new Promise((resolve, reject) => {
324 window.resolveLocalFileSystemURL(
325 uri,
326 (entry) => {
327 resolve(entry.toInternalURL());
328 },
329 reject,
330 );
331 });
332 },
333 promisify(func, ...args) {
334 return new Promise((resolve, reject) => {
335 func(...args, resolve, reject);

Callers

nothing calls this directly

Calls 1

resolveFunction · 0.85

Tested by

no test coverage detected