diff --git a/src/App.vue b/src/App.vue index 3421352..0f9a4d3 100644 --- a/src/App.vue +++ b/src/App.vue @@ -118,8 +118,8 @@ async function sendTelemetry(vue) { } // send telemetry fetch(`${vue.$apiServerBaseURL}/telemetry`, { - method: 'POST', - headers: { Accept: 'application/json', 'Content-Type': 'application/json' }, + method: 'POST', + headers: { Accept: 'application/json', 'Content-Type': 'application/json', 'Client': vue.$client}, body: vue.$store.state.telemetryData, }); } else { diff --git a/src/components/ButtonBMPSave.vue b/src/components/ButtonBMPSave.vue index 2336666..0ef59a6 100644 --- a/src/components/ButtonBMPSave.vue +++ b/src/components/ButtonBMPSave.vue @@ -88,7 +88,7 @@ export default { // send new bitmap fetch(`${this.$apiServerBaseURL}/SaveBitmap`, { method: 'POST', - headers: { Accept: 'application/json', 'Content-Type': 'application/json' }, + headers: { Accept: 'application/json', 'Content-Type': 'application/json', 'Client': this.$client}, body: JSON.stringify({ rgb565array: this.cleanedData, userName: this.userName != '' ? this.userName : 'Not specified', diff --git a/src/main.js b/src/main.js index 6eea85b..1b5d4bb 100644 --- a/src/main.js +++ b/src/main.js @@ -24,6 +24,7 @@ if (process.env.VUE_APP_API_SERVER !== undefined) { Vue.prototype.$apiServerBaseURL = 'https://pixelit.bastelbunker.de/api'; } +Vue.prototype.$client = 'PixelIt-Webui'; Vue.use(VueSpinners); Vue.use(VueCookies);