Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
o0shojo0o committed Nov 3, 2023
1 parent ff2b847 commit d67baac
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/components/ButtonBMPSave.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
1 change: 1 addition & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d67baac

Please sign in to comment.