spot add semver to header
This commit is contained in:
parent
082bc5d489
commit
e7fe260c81
1 changed files with 4 additions and 1 deletions
|
|
@ -3,6 +3,8 @@ import { WebRequest } from "webextension-polyfill";
|
||||||
export default defineBackground(() => {
|
export default defineBackground(() => {
|
||||||
const CHECK_INT = 60 * 1000;
|
const CHECK_INT = 60 * 1000;
|
||||||
const PING_INT = 30 * 1000;
|
const PING_INT = 30 * 1000;
|
||||||
|
const VER = '1.0.0';
|
||||||
|
|
||||||
const messages = {
|
const messages = {
|
||||||
popup: {
|
popup: {
|
||||||
from: {
|
from: {
|
||||||
|
|
@ -275,6 +277,7 @@ export default defineBackground(() => {
|
||||||
method: "GET",
|
method: "GET",
|
||||||
headers: {
|
headers: {
|
||||||
Authorization: `Bearer ${jwtToken}`,
|
Authorization: `Bearer ${jwtToken}`,
|
||||||
|
'Ext-Version': VER
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
if (!r.ok) {
|
if (!r.ok) {
|
||||||
|
|
@ -738,7 +741,6 @@ export default defineBackground(() => {
|
||||||
name: finalSpotObj.name,
|
name: finalSpotObj.name,
|
||||||
comment: finalSpotObj.comment,
|
comment: finalSpotObj.comment,
|
||||||
preview: finalSpotObj.preview,
|
preview: finalSpotObj.preview,
|
||||||
// duration: finalSpotObj.duration,
|
|
||||||
duration: duration,
|
duration: duration,
|
||||||
crop: finalSpotObj.crop,
|
crop: finalSpotObj.crop,
|
||||||
vitals: finalSpotObj.vitals,
|
vitals: finalSpotObj.vitals,
|
||||||
|
|
@ -810,6 +812,7 @@ export default defineBackground(() => {
|
||||||
headers: {
|
headers: {
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
Authorization: `Bearer ${jwtToken}`,
|
Authorization: `Bearer ${jwtToken}`,
|
||||||
|
'Ext-Version': VER
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
.then((r) => {
|
.then((r) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue