From e7fe260c81240fc0f74c9e17734930b30e838cf3 Mon Sep 17 00:00:00 2001 From: nick-delirium Date: Fri, 6 Sep 2024 11:14:30 +0200 Subject: [PATCH] spot add semver to header --- spot/entrypoints/background.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spot/entrypoints/background.ts b/spot/entrypoints/background.ts index 440518cdf..d34aa634e 100644 --- a/spot/entrypoints/background.ts +++ b/spot/entrypoints/background.ts @@ -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) => {