1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-14 20:10:13 +03:00

Removed release notes from firmware flasher (#3083)

Co-authored-by: J Blackman <blckmn@users.noreply.github.com>
This commit is contained in:
Ivan Efimov 2022-11-14 15:59:41 -06:00 committed by GitHub
parent 4df7f5b9fb
commit 46f0bb3885
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 18 deletions

View file

@ -73,16 +73,6 @@ firmware_flasher.initialize = function (callback) {
$('div.release_info #cloudTargetInfo').hide();
}
if (summary.notes) {
let formattedNotes = summary.notes.replace(/#(\d+)/g, '[#$1](https://github.com/betaflight/betaflight/pull/$1)');
formattedNotes = marked.parse(formattedNotes);
formattedNotes = DOMPurify.sanitize(formattedNotes);
$('div.release_info .notes').html(formattedNotes);
GUI.addLinksTargetBlank($('div.release_info .notes'));
} else {
$('div.release_info .notes').html('Release notes unavailable.');
}
if (self.targets) {
$('div.release_info').slideDown();
$('.tab-firmware_flasher .content_wrapper').animate({ scrollTop: $('div.release_info').position().top }, 1000);