1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-23 00:05:22 +03:00

CF/BF - Support reading OSD logos from local files.

It was broken due to chrome permissions.
This commit is contained in:
Hydra 2018-03-26 21:44:42 +02:00 committed by Michael Keller
parent 4e64318c42
commit 5f3c2b9c4b

View file

@ -214,7 +214,11 @@ var openLogoImage = function() {
reject(error);
};
fileEntry.file(function(file) {
img.src = "file://" + file.path;
var fr = new FileReader();
fr.onload = function () {
img.src = fr.result;
}
fr.readAsDataURL(file);
});
});
});