grid patterns

This commit is contained in:
Azgaar 2021-04-10 18:59:00 +03:00
parent 38c8a20c45
commit 6fd8862d7a
5 changed files with 90 additions and 84 deletions

View file

@ -605,15 +605,15 @@ JSON.isValid = str => {
function getBase64(url, callback) {
const xhr = new XMLHttpRequest();
xhr.onload = function() {
xhr.onload = function () {
const reader = new FileReader();
reader.onloadend = function() {
reader.onloadend = function () {
callback(reader.result);
}
};
reader.readAsDataURL(xhr.response);
};
xhr.open('GET', url);
xhr.responseType = 'blob';
xhr.open("GET", url);
xhr.responseType = "blob";
xhr.send();
}