Convert extension to manifest v3

This commit is contained in:
hensm
2026-03-08 12:40:56 +00:00
parent c5846a05d9
commit d6099f6f08
19 changed files with 343 additions and 360 deletions

View File

@@ -64,16 +64,20 @@ export default class Remote extends CastClient {
if (!application || application.isIdleScreen) {
// Handle app close
if (this.transportClient) {
this.transportClient.disconnect();
this.transportClient = undefined;
this.options?.onApplicationClose?.();
}
this.options?.onReceiverStatusUpdate?.(message.status);
return;
}
// Update status before possible transport init
this.options?.onReceiverStatusUpdate?.(message.status);
// Handle app creation/discovery
if (application && !this.transportClient) {
if (!this.transportClient) {
this.transportClient = new RemoteTransport(
application.transportId,
message => this.onMediaMessage(message)