spot add semver to header

This commit is contained in:
nick-delirium 2024-09-06 11:14:30 +02:00
parent 082bc5d489
commit e7fe260c81
No known key found for this signature in database
GPG key ID: 93ABD695DF5FDBA0

View file

@ -3,6 +3,8 @@ import { WebRequest } from "webextension-polyfill";
export default defineBackground(() => {
const CHECK_INT = 60 * 1000;
const PING_INT = 30 * 1000;
const VER = '1.0.0';
const messages = {
popup: {
from: {
@ -275,6 +277,7 @@ export default defineBackground(() => {
method: "GET",
headers: {
Authorization: `Bearer ${jwtToken}`,
'Ext-Version': VER
},
});
if (!r.ok) {
@ -738,7 +741,6 @@ export default defineBackground(() => {
name: finalSpotObj.name,
comment: finalSpotObj.comment,
preview: finalSpotObj.preview,
// duration: finalSpotObj.duration,
duration: duration,
crop: finalSpotObj.crop,
vitals: finalSpotObj.vitals,
@ -810,6 +812,7 @@ export default defineBackground(() => {
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${jwtToken}`,
'Ext-Version': VER
},
})
.then((r) => {