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 = {
|
type MessageDefinitions = {
|
||||||
/**
|
/**
|
||||||
* First message sent by the extension to the bridge.
|
* First message sent by the extension to the bridge.Responds directly with
|
||||||
* Includes extension version string. Responds directly with version
|
* version string of the bridge to compare.
|
||||||
* string of the bridge to compare.
|
|
||||||
*
|
*
|
||||||
* Still uses `:/` message separator for compat talking to older
|
* Still uses `:/` message separator for compat talking to older bridge
|
||||||
* bridge versions.
|
* versions.
|
||||||
*/
|
*/
|
||||||
"bridge:getInfo": string;
|
"bridge:getInfo": undefined;
|
||||||
"bridge:/getInfo": string;
|
"bridge:/getInfo": undefined;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tells a bridge to begin service discovery (and whether to
|
* Tells a bridge to begin service discovery (and whether to
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ const getInfo = () =>
|
|||||||
|
|
||||||
applicationVersion = await nativeMessaging.sendNativeMessage(
|
applicationVersion = await nativeMessaging.sendNativeMessage(
|
||||||
applicationName,
|
applicationName,
|
||||||
{ subject: "bridge:/getInfo", data: version }
|
{ subject: "bridge:/getInfo" }
|
||||||
);
|
);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (err === 401) {
|
if (err === 401) {
|
||||||
|
|||||||
@@ -127,15 +127,14 @@ type ExtensionMessageDefinitions = {
|
|||||||
*/
|
*/
|
||||||
type BridgeMessageDefinitions = {
|
type BridgeMessageDefinitions = {
|
||||||
/**
|
/**
|
||||||
* First message sent by the extension to the bridge.
|
* First message sent by the extension to the bridge.Responds directly with
|
||||||
* Includes extension version string. Responds directly with version
|
* version string of the bridge to compare.
|
||||||
* string of the bridge to compare.
|
|
||||||
*
|
*
|
||||||
* Still uses `:/` message separator for compat talking to older
|
* Still uses `:/` message separator for compat talking to older bridge
|
||||||
* bridge versions.
|
* versions.
|
||||||
*/
|
*/
|
||||||
"bridge:getInfo": string;
|
"bridge:getInfo": undefined;
|
||||||
"bridge:/getInfo": string;
|
"bridge:/getInfo": undefined;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tells a bridge to begin service discovery (and whether to
|
* Tells a bridge to begin service discovery (and whether to
|
||||||
|
|||||||
Reference in New Issue
Block a user