MCPcopy Index your code
hub / github.com/dropzone/dropzone / createBlob

Function createBlob

test/test.js:1854–1867  ·  view source on GitHub ↗
(data, type)

Source from the content-addressed store, hash-verified

1852 return describe("when file is SVG", () =>
1853 it("should use the SVG image itself", function (done) {
1854 let createBlob = function (data, type) {
1855 try {
1856 return new Blob([data], { type });
1857 } catch (e) {
1858 let BlobBuilder =
1859 window.BlobBuilder ||
1860 window.WebKitBlobBuilder ||
1861 window.MozBlobBuilder ||
1862 window.MSBlobBuilder;
1863 let builder = new BlobBuilder();
1864 builder.append(data.buffer || data);
1865 return builder.getBlob(type);
1866 }
1867 };
1868
1869 let blob = createBlob("foo", "image/svg+xml");
1870

Callers 1

test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…