MCPcopy
hub / github.com/pixijs/pixijs / isDataURI

Function isDataURI

transcoders/basis/basis_transcoder.js:295–295  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

293 }Module.preloadedImages = {}; Module.preloadedAudios = {}; function abort(what) { if (Module.onAbort) { Module.onAbort(what); }what = String(what); out(what); err(what); ABORT = true; EXITSTATUS = 1; what = `abort(${what}). Build with -s ASSERTIONS=1 for more info.`; throw new WebAssembly.RuntimeError(what); } const dataURIPrefix = 'data:application/octet-stream;base64,';
294
295 function isDataURI(filename) { return String.prototype.startsWith ? filename.startsWith(dataURIPrefix) : filename.indexOf(dataURIPrefix) === 0; } let wasmBinaryFile = 'basis_transcoder.wasm';
296
297 if (!isDataURI(wasmBinaryFile)) { wasmBinaryFile = locateFile(wasmBinaryFile); } function getBinary()
298 {

Callers 2

instantiateAsyncFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected