aboutsummaryrefslogtreecommitdiffstats
path: root/lib/plugin-pubsub.ts
diff options
context:
space:
mode:
Diffstat (limited to 'lib/plugin-pubsub.ts')
-rw-r--r--lib/plugin-pubsub.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/plugin-pubsub.ts b/lib/plugin-pubsub.ts
index 3a34de9..ec4afb2 100644
--- a/lib/plugin-pubsub.ts
+++ b/lib/plugin-pubsub.ts
@@ -1,16 +1,16 @@
-import {BasePubSub} from "./base-pubsub";
+import { BasePubSub } from './base-pubsub';
declare const window: Window;
export class PluginPubSub extends BasePubSub {
- constructor(pluginId: string, parentUrl: string, eventsToWait?: Array<string>) {
+ constructor(pluginId: string, parentUrl: string, eventsToWait?: string[]) {
super(pluginId);
this.register('sdc-hub', window.parent, parentUrl);
this.subscribe(eventsToWait);
}
- public subscribe(eventsToWait?: Array<string>) {
+ public subscribe(eventsToWait?: string[]) {
const registerData = {
pluginId: this.clientId,
eventsToWait: eventsToWait || []