Remove fetch for wiki (#3263)

10.9-maintenance
Mark Haslinghuis 2023-01-23 15:31:38 +01:00 committed by GitHub
parent 80686eb8ef
commit 4ea53294d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 4 deletions

View File

@ -305,12 +305,9 @@ class GuiControl {
this.switchery();
const documentationButton = $('div#content #button-documentation');
documentationButton.html("Wiki");
const tRex = GUI.active_tab.replaceAll('_', '-').toLowerCase();
const url = `https://betaflight.com/docs/configurator/${tRex}-tab`;
fetch(url).then(res => documentationButton.attr("href", res.ok ? url : `https://betaflight.com/docs/wiki`));
documentationButton.html("Wiki").attr("href", `https://betaflight.com/docs/configurator/${tRex}-tab`);
// loading tooltip
jQuery(function () {