travist / seamless.js

A Javascript library for working with seamless iframes.
http://www.travistidwell.com/seamless.js
MIT License
217 stars 44 forks source link

Updates to postmessage to reduce thrown errors #23

Closed aiwebb closed 5 years ago

aiwebb commented 5 years ago
  1. Ignore empty-string messages (sent by some libraries to check postMessage behavior, unactionable and currently throwing errors)

  2. Only attempt deserialization if typeof is string - back when postmessage was created, the window.postMessage interface apparently required serialization, but today it can and does pass native objects