1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-24 16:55:24 +03:00

Merge pull request #992 from mikeller/fix_loading_custom_logo

From cleanflight: Support reading OSD logos from local files.
This commit is contained in:
Michael Keller 2018-03-28 03:29:47 +13:00 committed by GitHub
commit 5cd895f7d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);
});
});
});