@wixc3/engine-core
Advanced tools
Comparing version 8.0.2 to 8.0.4
import { Json } from './types'; | ||
export declare class ManagedIframe { | ||
private host; | ||
constructor(host: HTMLIFrameElement); | ||
constructor(host: Window | null); | ||
getHashParams(): any; | ||
@@ -6,0 +6,0 @@ decode: (hash: string) => any; |
@@ -20,6 +20,6 @@ "use strict"; | ||
getContentWindow() { | ||
if (!this.host.contentWindow) { | ||
if (!this.host) { | ||
throw new Error('Target is not connected to the DOM'); | ||
} | ||
return this.host.contentWindow; | ||
return this.host; | ||
} | ||
@@ -26,0 +26,0 @@ offHashChange(onHashChange) { |
{ | ||
"name": "@wixc3/engine-core", | ||
"version": "8.0.2", | ||
"version": "8.0.4", | ||
"main": "cjs/index.js", | ||
@@ -5,0 +5,0 @@ "types": "cjs/index.d.ts", |
import { Json } from './types'; | ||
export class ManagedIframe { | ||
constructor(private host: HTMLIFrameElement) {} | ||
constructor(private host: Window | null) {} | ||
public getHashParams() { | ||
@@ -22,6 +22,6 @@ const contentWindow = this.getContentWindow(); | ||
private getContentWindow() { | ||
if (!this.host.contentWindow) { | ||
if (!this.host) { | ||
throw new Error('Target is not connected to the DOM'); | ||
} | ||
return this.host.contentWindow; | ||
return this.host; | ||
} | ||
@@ -28,0 +28,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
295668