Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix postMessage({}, '*') causes slackin to throw
Non-slackin code may postMessage() to the same window (in my case, a Twitter button), and unlike slackin, may choose to send an object as a message rather than a string. Unlike strings, not all objects have a .substr() method, so slackin doing e.data.substr() throws an exception: https://git.io/v2N5t
- Loading branch information