Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public constructor() {
this._ancestorOrigin = determineAncestorOrigin();
this.installPlatformEventDispatcher();
this._mouseDispatcher = installMouseDispatcher(window.parent, this._ancestorOrigin || '*');
}
this._zone.runOutsideAngular(() => {
this._mouseDispatcher = installMouseDispatcher(iframe.contentWindow, this._siteUrl.origin);
});
});