Skip to content

Commit ec8a92b

Browse files
authored
Merge pull request #82 from adobe/SITES-28221-Expose-extension-id-to-host
SITES-28221 Expose extension id to the uix host
2 parents 91cf839 + 97ec2fb commit ec8a92b

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

packages/uix-guest/src/guest-server.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ export class GuestServer<Outgoing extends GuestApis> extends Guest<Outgoing> {
5353
*/
5454
async register(implementedMethods: Outgoing, metadata: GuestMetadata) {
5555
this.localMethods = implementedMethods;
56-
this.metadata = metadata;
56+
this.metadata = {
57+
...metadata,
58+
extensionId: this.id,
59+
};
5760
return this._connect();
5861
}
5962
}

packages/uix-host/src/port.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,7 @@ import type {
2323
UIHostMethods,
2424
GuestMetadata,
2525
} from "@adobe/uix-core";
26-
import {
27-
Emitter,
28-
connectIframe,
29-
formatHostMethodAddress,
30-
} from "@adobe/uix-core";
26+
import { Emitter, connectIframe } from "@adobe/uix-core";
3127
import { normalizeIframe } from "./dom-utils";
3228

3329
/**

0 commit comments

Comments
 (0)