Skip to content

Commit

Permalink
fix docs build
Browse files Browse the repository at this point in the history
  • Loading branch information
emilefokkema committed Feb 7, 2024
1 parent c0c390e commit 0e1dc69
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ export class ExampleInfiniteCanvasRegistry{
public subscribeToExampleInfiniteCanvases(iFrame: HTMLIFrameElement): ExampleInfiniteCanvasesSubscription{
return ExampleInfiniteCanvasesSubscription.create(this.windowMessages, iFrame);
}
public static create(): ExampleInfiniteCanvasRegistry{
public static create(): ExampleInfiniteCanvasRegistry | undefined{
if(typeof window === 'undefined' || !window){
return undefined;
}
return new ExampleInfiniteCanvasRegistry(fromEvent<MessageEvent>(window, 'message'));
}
}

0 comments on commit 0e1dc69

Please sign in to comment.