diff options
Diffstat (limited to 'catalog-ui/src/app/models')
-rw-r--r-- | catalog-ui/src/app/models/base-pubsub.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/catalog-ui/src/app/models/base-pubsub.ts b/catalog-ui/src/app/models/base-pubsub.ts index ca500ca173..ca313b15f5 100644 --- a/catalog-ui/src/app/models/base-pubsub.ts +++ b/catalog-ui/src/app/models/base-pubsub.ts @@ -37,7 +37,7 @@ export class BasePubSub { this.eventsCallbacks.splice(index, 1) } - public notify(eventType:string, eventData:any) { + public notify(eventType:string, eventData?:any) { let eventObj = { type: eventType, data: eventData, @@ -60,9 +60,9 @@ export class BasePubSub { export class PluginPubSub extends BasePubSub { - constructor(pluginId: string, subscriberUrl: string) { + constructor(pluginId: string, parentUrl: string) { super(pluginId); - this.register('sdc-hub', window.parent, subscriberUrl); + this.register('sdc-hub', window.parent, parentUrl); this.subscribe(); } |