MCPcopy Create free account
hub / github.com/GoogleChrome/samples / isDataURI

Function isDataURI

mkbitmap/mkbitmap.js:715–718  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

713
714// Indicates whether filename is a base64 data URI.
715function isDataURI(filename) {
716 // Prefix of data URIs emitted by SINGLE_FILE and related options.
717 return filename.startsWith(dataURIPrefix);
718}
719
720// Indicates whether filename is delivered via file protocol (as opposed to http/https)
721function isFileURI(filename) {

Callers 2

mkbitmap.jsFile · 0.70
instantiateAsyncFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected