@googleforcreators/media
Version:
Functionality for creating and working with media resources in the Web Stories editor.
3 lines (2 loc) • 316 B
JavaScript
const t={};function n(n){const e=window.URL.createObjectURL(n);return t[e]=n,e}function e(n){return t[n]}function o(n){e(n)&&window.URL.revokeObjectURL(n),delete t[n]}function r(t){return!!t&&t.startsWith("blob:")}export{n as createBlob,e as getBlob,r as isBlobURL,o as revokeBlob};
//# sourceMappingURL=blob.js.map