mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-24 00:35:26 +03:00
CF/BF - Support reading OSD logos from local files.
It was broken due to chrome permissions.
This commit is contained in:
parent
4e64318c42
commit
5f3c2b9c4b
1 changed files with 5 additions and 1 deletions
|
@ -214,7 +214,11 @@ var openLogoImage = function() {
|
||||||
reject(error);
|
reject(error);
|
||||||
};
|
};
|
||||||
fileEntry.file(function(file) {
|
fileEntry.file(function(file) {
|
||||||
img.src = "file://" + file.path;
|
var fr = new FileReader();
|
||||||
|
fr.onload = function () {
|
||||||
|
img.src = fr.result;
|
||||||
|
}
|
||||||
|
fr.readAsDataURL(file);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue