Commit Graph

5 Commits

Author SHA1 Message Date
Rob Wu 3870a213bb Fix value check in page-to-extension-messaging example (#229)
Check the value of "event.data" before dereferencing it,
to avoid errors when void messages are sent using postMessage.

And remove the "event.data.direction" truthness check, because the
actual value is already tested at the next line.
2017-06-08 08:06:34 -07:00
Will Bamberg 1967f9ba6a move listener definitions above references 2016-02-19 13:30:32 -08:00
Will Bamberg 5f58a9f23b added comments to one missing file 2016-01-14 15:08:36 -08:00
Will Bamberg bcc14c1b7a added origin in postMessage() call 2016-01-05 16:15:15 -08:00
Will Bamberg 29697b03f8 2-way messaging 2015-09-17 22:12:53 -07:00