Improve media-tag export in pad to work with existing CSP
This commit is contained in:
@@ -207,6 +207,13 @@ define([], function () {
|
||||
return Array.prototype.slice.call(A);
|
||||
};
|
||||
|
||||
Util.blobToImage = function (blob, cb) {
|
||||
var reader = new FileReader();
|
||||
reader.onloadend = function() {
|
||||
cb(reader.result);
|
||||
};
|
||||
reader.readAsDataURL(blob);
|
||||
};
|
||||
Util.blobURLToImage = function (url, cb) {
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.onload = function() {
|
||||
|
||||
Reference in New Issue
Block a user