Skip to content

Latest commit

 

History

History
77 lines (41 loc) · 1.64 KB

File metadata and controls

77 lines (41 loc) · 1.64 KB

Changelog

1.2.3

Changed

  • Injecting nodes one after another and waiting for script tags that have a src attribute to be loaded.

1.2.2

Changed

  • Using append instead of appendChild when injecting HTML.

1.2.1

Changed

  • Generated iframe HTML will now add all attributes to cloned script nodes.
  • Generated iframe HTML will now append one child after the other with separate calls.

1.2.0

Added

  • Added optional HTML generation options extendHead and extendBody which allows you to statically inject custom HTML into the head and body.

1.1.6

Fixed

  • Checking if running inside iframe based on window.parent and not window.top.

1.1.5

Fixed

  • dist/mjs is now post-processed with library tsc-esm-fix to add .js suffix to all imports.

1.1.4

Updated

  • Updated/corrected README.

1.1.3

Updated

  • Updated/corrected README.

1.1.2

Added

  • receive methods now check for event.source === iframe.contentWindow if an iframe is passed.
  • receive methods have a new options parameter that allows to change the behaviour (iframeEmitterCheck) to additionally check if event.origin matches iframe.src.

1.1.1

Fixed

  • send methods were accessing iframe window's location although host window location shall be accessed.

1.1.0

Changed

  • send* and receive* methods do not accept a window object anymore
  • send* and receive* methods auto resolve the targetOrigin now via iframe.getAttribute("src")

1.0.1

Initial release:

  • Server functions to generate helper page/iframe HTML.
  • Client functions to set head + body content, and to receive dimension updates.