mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-08 08:39:59 +00:00
Remove extension version in bridge:getInfo message (due to Mozilla data consent policy)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -69,7 +69,7 @@ const getInfo = () =>
|
||||
|
||||
applicationVersion = await nativeMessaging.sendNativeMessage(
|
||||
applicationName,
|
||||
{ subject: "bridge:/getInfo", data: version }
|
||||
{ subject: "bridge:/getInfo" }
|
||||
);
|
||||
} catch (err) {
|
||||
if (err === 401) {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user