Skip to content

Commit

Permalink
fix bug where origin wasn't being set to correct string
Browse files Browse the repository at this point in the history
  • Loading branch information
JetFault committed Apr 22, 2015
1 parent 18b2bb0 commit 85e3ec8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/hermes-messenger.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Hermes.prototype.send = function send(data, cb) {

var text = this._serializeData(obj);

this.targetFrame.postMessage(text, this.targetDomain);
this.targetFrame.postMessage(text, this.targetOrigin);
};

Hermes.prototype.announceReady = function announceReady() {
Expand Down
2 changes: 1 addition & 1 deletion dist/hermes-messenger.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Hermes.prototype.send = function send(data, cb) {

var text = this._serializeData(obj);

this.targetFrame.postMessage(text, this.targetDomain);
this.targetFrame.postMessage(text, this.targetOrigin);
};

Hermes.prototype.announceReady = function announceReady() {
Expand Down

0 comments on commit 85e3ec8

Please sign in to comment.