Remove extension version in bridge:getInfo message (due to Mozilla data consent policy)

This commit is contained in:
hensm
2026-03-07 12:33:37 +00:00
parent 75f0a1bb1c
commit f8c480c1d3
3 changed files with 13 additions and 15 deletions

View File

@@ -24,15 +24,14 @@ import type { WebSocket } from "ws";
*/
type MessageDefinitions = {
/**
* First message sent by the extension to the bridge.
* Includes extension version string. Responds directly with version
* string of the bridge to compare.
* First message sent by the extension to the bridge.Responds directly with
* version string of the bridge to compare.
*
* Still uses `:/` message separator for compat talking to older
* bridge versions.
* Still uses `:/` message separator for compat talking to older bridge
* versions.
*/
"bridge:getInfo": string;
"bridge:/getInfo": string;
"bridge:getInfo": undefined;
"bridge:/getInfo": undefined;
/**
* Tells a bridge to begin service discovery (and whether to

View File

@@ -69,7 +69,7 @@ const getInfo = () =>
applicationVersion = await nativeMessaging.sendNativeMessage(
applicationName,
{ subject: "bridge:/getInfo", data: version }
{ subject: "bridge:/getInfo" }
);
} catch (err) {
if (err === 401) {

View File

@@ -127,15 +127,14 @@ type ExtensionMessageDefinitions = {
*/
type BridgeMessageDefinitions = {
/**
* First message sent by the extension to the bridge.
* Includes extension version string. Responds directly with version
* string of the bridge to compare.
* First message sent by the extension to the bridge.Responds directly with
* version string of the bridge to compare.
*
* Still uses `:/` message separator for compat talking to older
* bridge versions.
* Still uses `:/` message separator for compat talking to older bridge
* versions.
*/
"bridge:getInfo": string;
"bridge:/getInfo": string;
"bridge:getInfo": undefined;
"bridge:/getInfo": undefined;
/**
* Tells a bridge to begin service discovery (and whether to