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

Add new wiki to configurator tabs (#3237)

* Add new wiki to configurator tabs

* Unify connecting characters in URL
This commit is contained in:
haslinghuis 2023-01-14 21:38:03 +01:00 committed by GitHub
parent ce2b69843f
commit 654dca2a19
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 9 deletions

View file

@ -76,13 +76,9 @@ firmware_flasher.initialize = function (callback) {
$('div.release_info .configFilename').text(self.isConfigLocal ? self.configFilename : "[default]");
// Wiki link to url found in unified target configuration or if not defined to general wiki url
let targetWiki = $('#targetWikiInfoUrl');
const targetWiki = $('#targetWikiInfoUrl');
targetWiki.html(`   [Wiki]`);
if (summary.wiki === undefined) {
targetWiki.attr("href", "https://github.com/betaflight/betaflight/wiki/");
} else {
targetWiki.attr("href", summary.wiki);
}
targetWiki.attr("href", summary.wiki === undefined ? "https://betaflight.com/docs/wiki/" : summary.wiki);
if (summary.cloudBuild) {
$('div.release_info #cloudTargetInfo').show();