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

Adding some extra data elements to a build request (#3194)

* Adding some extra data elements to a build request

- so as to be able to provide better support, and analysis

* Renamed "info" to more appropriate "response"
This commit is contained in:
J Blackman 2023-01-01 15:11:10 +11:00 committed by GitHub
parent a0ba23865f
commit 17d4738b34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 37 additions and 22 deletions

View file

@ -58,6 +58,13 @@ function appReady() {
i18n.init(function() {
startProcess();
// pass the configurator version as a custom header for every AJAX request.
$.ajaxSetup({
headers: {
'X-CFG-VER': `${CONFIGURATOR.version}`,
},
});
initializeSerialBackend();
$('.connect_b a.connect').removeClass('disabled');